Class AdminMessageTooLargeException

All Implemented Interfaces:
Serializable

public class AdminMessageTooLargeException extends VeniceException
Thrown when an admin operation's serialized size exceeds the admin topic payload cap. The pre-flight raises this before allocating an execution id, so callers can safely retry with a smaller payload. Returns HTTP 413 so clients can distinguish "payload too big" from generic server errors.
See Also:
  • Constructor Details

    • AdminMessageTooLargeException

      public AdminMessageTooLargeException(String operationName, int size, int max)
  • Method Details

    • getOperationName

      public String getOperationName()
    • getSize

      public int getSize()
    • getMax

      public int getMax()
    • getHttpStatusCode

      public int getHttpStatusCode()
      Description copied from class: VeniceException
      If this exception is caught in handling an http request, what status code should be returned? By default this is derived from the ErrorType set on the exception (see ErrorType.getHttpStatusCode()), which defaults to 500 (Internal Server Error) for ErrorType.GENERAL_ERROR. Exceptions that extend VeniceException can override this for different behavior.
      Overrides:
      getHttpStatusCode in class VeniceException