Class CancelException

All Implemented Interfaces:
Serializable

public class CancelException extends RuntimeException
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.
      Returns:
      HTTP error code