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, toString
public 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()
getErrorResponse
in interface WithErrorResponse
Copyright © 2020 SAP SE. All rights reserved.