public class ParameterValidationExceptionMapper extends Object implements ExceptionMapper<ParameterValidationException>
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 |
|---|
ParameterValidationExceptionMapper() |
| Modifier and Type | Method and Description |
|---|---|
Class<ParameterValidationException> |
getExceptionClass() |
Status |
mapException(ParameterValidationException exception)
Maps the given exception to a status.
|
public Class<ParameterValidationException> getExceptionClass()
getExceptionClass in interface ExceptionMapper<ParameterValidationException>public Status mapException(ParameterValidationException exception)
mapException in interface ExceptionMapper<ParameterValidationException>exception - The exception to map.Copyright © 2019 Communote team. All rights reserved.