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) |
public Class<javax.validation.ConstraintViolationException> getThrowableClass()
public ResponseWithErrorCode toResponse(Throwable throwable)
public LogLevel getLogLevel(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(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 © 2017 SAP SE. All rights reserved.