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? Exceptions that extend VeniceException can override this for different behavior
      Overrides:
      getHttpStatusCode in class VeniceException
      Returns:
      500 (Internal Server Error)