Class CancelException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CancelException
    extends java.lang.RuntimeException
    Unchecked exception for indicating that some operation should be canceled.
    Author:
    Garret Wilson
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CancelException()
      Constructs a new exception with no detail message.
      CancelException​(java.lang.String message)
      Constructs a new exception with the specified detail message.
      CancelException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new exception with the specified detail message and cause.
      CancelException​(java.lang.Throwable cause)
      Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()).
    • Method Summary

      • 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()
        Constructs a new exception with no detail message.
      • CancelException

        public CancelException​(java.lang.String message)
        Constructs a new exception with the specified detail message.
        Parameters:
        message - The detail message.
      • CancelException

        public CancelException​(java.lang.String message,
                               java.lang.Throwable cause)
        Constructs a new exception with the specified detail message and cause.
        Parameters:
        message - The detail message (which is saved for later retrieval by the Throwable.getMessage() method).
        cause - The cause (which is saved for later retrieval by the Throwable.getCause() method), or null if the cause is nonexistent or unknown.
      • CancelException

        public CancelException​(java.lang.Throwable cause)
        Constructs a new exception with the specified cause and a detail message of (cause==null ? null : cause.toString()).
        Parameters:
        cause - The cause (which is saved for later retrieval by the Throwable.getCause() method), or null if the cause is nonexistent or unknown.