public class MaxLengthReachedExceptionMapper extends Object implements ExceptionMapper<MaxLengthReachedException>
AUTHENTICATION_ERROR, AUTHORIZATION_ERROR, BAD_REQUEST, FORBIDDEN, ILLEGAL_PARAMETERS_ERROR, INTERNAL_ERROR, NOT_ACCEPTABLE, NOT_FOUND, OKAY, UNKNOWN_ERROR, VALIDATION_ERROR, WARNING| Constructor and Description |
|---|
MaxLengthReachedExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
Class<MaxLengthReachedException> |
getExceptionClass() |
Status |
mapException(MaxLengthReachedException exception)
Maps the given exception to a status.
|
public Class<MaxLengthReachedException> getExceptionClass()
getExceptionClass in interface ExceptionMapper<MaxLengthReachedException>public Status mapException(MaxLengthReachedException exception)
mapException in interface ExceptionMapper<MaxLengthReachedException>exception - The exception to map.Copyright © 2019 Communote team. All rights reserved.