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