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()
public ResponseWithErrorCode toResponse(@Nonnull Throwable throwable)
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.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 © 2019 SAP SE. All rights reserved.