public class PayloadTooLargeException extends RuntimeException implements WithErrorResponse
| Constructor and Description |
|---|
PayloadTooLargeException(Class<?> entity,
int maxNumber,
int actualNumber)
Exception constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ResponseWithErrorCode |
getErrorResponse()
Gets the response containing an HTTP error code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic PayloadTooLargeException(@Nonnull Class<?> entity, int maxNumber, int actualNumber)
entity - Entity type which is used in the payload.maxNumber - Maximum number entity data allowed in the payload.actualNumber - Actual number of entity data.@Nonnull public ResponseWithErrorCode getErrorResponse()
WithErrorResponsegetErrorResponse in interface WithErrorResponseCopyright © 2022 SAP SE. All rights reserved.