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