Package org.machanism.machai.ai.tools
Class SpecialException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.machanism.machai.ai.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:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newSpecialExceptionthat wraps another exception.SpecialException(String message) Constructs a newEndTaskExceptionwith the specified detail message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SpecialException
Constructs a newEndTaskExceptionwith 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
-