Class SpecialException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.machanism.machai.process.tools.SpecialException
- All Implemented Interfaces:
Serializable
Exception used to signal the end of a task without terminating the
application.
This exception is typically thrown by function tools to gracefully conclude an interactive session or user-driven task, allowing the application to continue running.
- Since:
- 1.2.0
- Author:
- Viktor Tovstyi
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longSerialization version for compatibility with previously serialized exception instances. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs aSpecialExceptionwithout a detail message or cause.Constructs a newSpecialExceptionthat wraps another exception.SpecialException(String message) Constructs a newSpecialExceptionwith the specified detail message.SpecialException(String message, Throwable cause) Constructs aSpecialExceptionwith a detail message and its underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialization version for compatibility with previously serialized exception instances.- See Also:
-
-
Constructor Details
-
SpecialException
public SpecialException()Constructs aSpecialExceptionwithout a detail message or cause.This form is appropriate when the special condition itself is sufficient to communicate that the current task should end.
-
SpecialException
Constructs a newSpecialExceptionwith the specified detail message.- Parameters:
message- the detail message describing the reason for ending the task
-
SpecialException
Constructs a newSpecialExceptionthat wraps another exception.- Parameters:
e- the exception that caused this special condition
-
SpecialException
Constructs aSpecialExceptionwith a detail message and its underlying cause.- Parameters:
message- the detail message describing the special conditioncause- the underlying cause, ornullwhen no cause is available
-