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