Class IdRequestLimitExceeded

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.io7m.idstore.error_codes.IdException
com.io7m.idstore.server.service.reqlimit.IdRequestLimitExceeded
All Implemented Interfaces:
com.io7m.seltzer.api.SStructuredErrorExceptionType<IdErrorCode>, com.io7m.seltzer.api.SStructuredErrorType<IdErrorCode>, Serializable

public final class IdRequestLimitExceeded extends IdException
An exception indicating that a request size limit was exceeded.
See Also:
  • Constructor Details

    • IdRequestLimitExceeded

      public IdRequestLimitExceeded(String message, long inSizeLimit, long inSizeProvided)
      An exception indicating that a request size limit was exceeded.
      Parameters:
      message - The message
      inSizeLimit - The limit
      inSizeProvided - The provided size
  • Method Details

    • sizeLimit

      public long sizeLimit()
      Returns:
      The size limit
    • sizeProvided

      public long sizeProvided()
      Returns:
      The size of the request