Package com.xinapse.util
Class CancelledException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.xinapse.util.CancelledException
- All Implemented Interfaces:
Serializable
Thrown when an action is cancelled by the user.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs aCancelledExceptionwithout a detail message, and without a user object.Constructs aCancelledExceptionwith the specified detail message.CancelledException(String s, List<ROI> userObject) Constructs aCancelledExceptionwith the specified detail message, and an associated User Object. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the User Object associated with thisCancelledException.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CancelledException
public CancelledException()Constructs aCancelledExceptionwithout a detail message, and without a user object. -
CancelledException
Constructs aCancelledExceptionwith the specified detail message. The error message stringscan later be retrieved by theThrowable.getMessage()method of classThrowable. There is no user object.- Parameters:
s- the detail message.
-
CancelledException
Constructs aCancelledExceptionwith the specified detail message, and an associated User Object. The error message stringscan later be retrieved by theThrowable.getMessage()method of classThrowable. The User Object can later be retrieved by thegetUserObject()method.- Parameters:
s- the detail message.userObject- the User Object to associate with thisCancelledException, which is a List of ROIs.
-
-
Method Details
-
getUserObject
Retrieves the User Object associated with thisCancelledException.- Returns:
- the User Object, which is a List of ROIs.
-