Class CancelException

All Implemented Interfaces:
Serializable, ErrorCodeException

public class CancelException extends RuntimeException implements ErrorCodeException
An exception used to indicate cancellation of an action with an appropriate status error code to return.

Primarily used to reject deployment or retrieval of an item.

Author:
Yoav Landman
See Also:
  • Constructor Details

    • CancelException

      public CancelException(String message, int status)
    • CancelException

      public CancelException(String message, Throwable cause, int status)
  • Method Details

    • getErrorCode

      public int getErrorCode()
      Returns the HTTP error code associated with the cancellation.
      Specified by:
      getErrorCode in interface ErrorCodeException
      Returns:
      HTTP error code