Package | Description |
---|---|
com.sap.cloud.sdk.cloudplatform.servlet.response |
Modifier and Type | Method and Description |
---|---|
ErrorResponseBuilder |
AbstractExceptionMapper.getErrorResponseBuilder() |
<ThrowableT extends Throwable & WithErrorResponse> |
ErrorResponseBuilder.logAsError(Class<ThrowableT> throwableClass)
Defines the use of log level "error" for the given type of Throwable.
|
<ThrowableT extends Throwable & WithErrorResponse> |
ErrorResponseBuilder.logAsInfo(Class<ThrowableT> throwableClass)
Defines the use of log level "info" for the given type of Throwable.
|
<ThrowableT extends Throwable & WithErrorResponse> |
ErrorResponseBuilder.logAsLevel(Class<ThrowableT> throwableClass,
LogLevel logLevel)
Defines the log level to use for the given type of Throwable.
|
<ThrowableT extends Throwable & WithErrorResponse> |
ErrorResponseBuilder.logAsWarning(Class<ThrowableT> throwableClass)
Defines the use of log level "warning" for the given type of Throwable.
|
static ErrorResponseBuilder |
ErrorResponseBuilder.newBuilder()
Creates a new default error response builder.
|
<ThrowableT extends Throwable> |
ErrorResponseBuilder.removeMapping(Class<ThrowableT> throwableClass)
Removes the mapping for a given type of Throwable.
|
ErrorResponseBuilder |
ErrorResponseBuilder.withMapper(ResponseMapper<?> responseMapper)
Use the given
ResponseMapper for building the error response. |
<ThrowableT extends Throwable & WithErrorResponse> |
ErrorResponseBuilder.withMapper(ResponseMapper<ThrowableT> responseMapper,
LogLevel logLevel)
Use the given
ResponseMapper for building the error response. |
Copyright © 2020 SAP SE. All rights reserved.