Class SpecialException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.machanism.machai.process.tools.SpecialException
All Implemented Interfaces:
Serializable

public class SpecialException extends RuntimeException
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version for compatibility with previously serialized exception instances.
      See Also:
  • Constructor Details

    • SpecialException

      public SpecialException()
      Constructs a SpecialException without 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

      public SpecialException(String message)
      Constructs a new SpecialException with the specified detail message.
      Parameters:
      message - the detail message describing the reason for ending the task
    • SpecialException

      public SpecialException(Exception e)
      Constructs a new SpecialException that wraps another exception.
      Parameters:
      e - the exception that caused this special condition
    • SpecialException

      public SpecialException(String message, Throwable cause)
      Constructs a SpecialException with a detail message and its underlying cause.
      Parameters:
      message - the detail message describing the special condition
      cause - the underlying cause, or null when no cause is available