public class ConstraintViolationExceptionMapper extends AbstractResponseMapper<javax.validation.ConstraintViolationException>
Constructor and Description |
---|
ConstraintViolationExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
String |
getErrorMessage(Throwable throwable) |
LogLevel |
getLogLevel(Throwable throwable) |
Class<javax.validation.ConstraintViolationException> |
getThrowableClass() |
ResponseWithErrorCode |
toResponse(Throwable throwable) |
@Nonnull public Class<javax.validation.ConstraintViolationException> getThrowableClass()
@Nonnull public ResponseWithErrorCode toResponse(@Nonnull Throwable throwable)
@Nonnull public LogLevel getLogLevel(@Nonnull Throwable throwable)
getLogLevel
in interface ResponseMapper<javax.validation.ConstraintViolationException>
getLogLevel
in class AbstractResponseMapper<javax.validation.ConstraintViolationException>
Throwable
. Returning null
indicates the response
builder to use its default behavior.@Nonnull public String getErrorMessage(@Nonnull Throwable throwable)
getErrorMessage
in interface ResponseMapper<javax.validation.ConstraintViolationException>
getErrorMessage
in class AbstractResponseMapper<javax.validation.ConstraintViolationException>
Throwable
. Returning null
indicates the
response builder to use its default behavior.Copyright © 2020 SAP SE. All rights reserved.