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