Class CancelException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CancelException
    extends java.lang.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:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CancelException​(java.lang.String message, int status)  
      CancelException​(java.lang.String message, java.lang.Throwable cause, int status)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()
      Returns the HTTP error code associated with the cancellation.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CancelException

        public CancelException​(java.lang.String message,
                               int status)
      • CancelException

        public CancelException​(java.lang.String message,
                               java.lang.Throwable cause,
                               int status)
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns the HTTP error code associated with the cancellation.
        Returns:
        HTTP error code