Class SysException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.aquima.interactions.foundation.exception.SysException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConversionException, DecisionTreeNotExposedException, EmptySymptomException, InvalidExportException, InvalidListenerException, InvalidStateException, LexerFailureException, LicenseParseException, ParseException, PatternException, UnhandledException, UnknownPropertyException, UnknownTypeException, XmlException

public class SysException extends RuntimeException
Base class for system exceptions. The system exception is used for exception that are deemed fatal, and thus do not need to be handled.
Since:
5.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • SysException

      public SysException(String message)
      Basic constructor with only a message explaining the cause of the error.
      Parameters:
      message - The message explaining the error that occurred.
    • SysException

      public SysException(Throwable cause)
      Constructor with an exception explaining the cause of the error.
      Parameters:
      cause - The original cause of the error.
    • SysException

      public SysException(String message, Throwable cause)
      Constructor with both a message and an exception explaining the cause of the error.
      Parameters:
      message - The message explaining the error that occurred.
      cause - The original cause of the error.
  • Method Details

    • raise

      public static void raise(String message, Throwable cause)
      This method will raise a SysException for the given message and cause. If the cause is a SysException or wraps a SysException, then the cause will be re-thrown and the message will be discarded.
      Parameters:
      message - Message explaining the cause of the error.
      cause - The actual cause of the error.
      Throws:
      SysException - A system exception for the specified parameters.
    • raise

      public static void raise(Throwable cause)
      This method will raise a SysException for the given cause. If the cause is a SysException or wraps a SysException, then the cause will be re-thrown.
      Parameters:
      cause - The actual cause of the error.
      Throws:
      SysException - A system exception for the specified parameters.