| Package | Description |
|---|---|
| com.sap.cloud.sdk.cloudplatform.servlet.exception | |
| com.sap.cloud.sdk.cloudplatform.servlet.response |
| Modifier and Type | Class and Description |
|---|---|
class |
ForbiddenOperationException
Thrown when a certain operation is not permitted.
|
class |
InvalidParameterException
Thrown when a parameter is invalid.
|
class |
MissingParameterException
Thrown when a mandatory parameter is missing.
|
class |
NotImplementedException
Thrown when trying to use a feature toggle that is not enabled.
|
class |
PayloadTooLargeException |
class |
ServiceNotAvailableException
Thrown when a service is not available.
|
| Modifier and Type | Method and Description |
|---|---|
<ThrowableT extends Throwable & WithErrorResponse> |
AbstractExceptionMapper.logAsError(Class<ThrowableT> throwableClass)
Only sets the error log level for any
Throwable of the given type. |
<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> |
AbstractExceptionMapper.logAsInfo(Class<ThrowableT> throwableClass)
Only sets the info log level for any
Throwable of the given type. |
<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> |
AbstractExceptionMapper.logAsLevel(Class<ThrowableT> throwableClass,
LogLevel logLevel)
Only sets a specific server-side log level for any
Throwable of the given type. |
<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> |
AbstractExceptionMapper.logAsWarning(Class<ThrowableT> throwableClass)
Only sets the warning log level for any
Throwable of the given type. |
<ThrowableT extends Throwable & WithErrorResponse> |
ErrorResponseBuilder.logAsWarning(Class<ThrowableT> throwableClass)
Defines the use of log level "warning" for the given type of Throwable.
|
<ThrowableT extends Throwable & WithErrorResponse> |
AbstractExceptionMapper.withMapper(ResponseMapper<ThrowableT> responseMapper,
LogLevel logLevel)
Adds the given
ResponseMapper for the Throwable specified insider the mapper. |
<ThrowableT extends Throwable & WithErrorResponse> |
ErrorResponseBuilder.withMapper(ResponseMapper<ThrowableT> responseMapper,
LogLevel logLevel)
Use the given
ResponseMapper for building the error response. |
Copyright © 2022 SAP SE. All rights reserved.