Class CARequestLimitExceeded
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.cardant.error_codes.CAException
com.io7m.cardant.server.service.reqlimit.CARequestLimitExceeded
- All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<CAErrorCode>, com.io7m.seltzer.api.SStructuredErrorType<CAErrorCode>, Serializable
An exception indicating that a request size limit was exceeded.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCARequestLimitExceeded(String message, long inSizeLimit, long inSizeProvided) An exception indicating that a request size limit was exceeded. -
Method Summary
Methods inherited from class CAException
attributes, errorCode, exception, remediatingActionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.seltzer.api.SStructuredErrorExceptionType
getMessage, message
-
Constructor Details
-
CARequestLimitExceeded
An exception indicating that a request size limit was exceeded.- Parameters:
message- The messageinSizeLimit- The limitinSizeProvided- The provided size
-
-
Method Details
-
sizeLimit
public long sizeLimit()- Returns:
- The size limit
-
sizeProvided
public long sizeProvided()- Returns:
- The size of the request
-