Class JCoRuntimeException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ConversionException, XMLParserException

public class JCoRuntimeException extends RuntimeException
Basic JCo exception for JCo runtime exceptions.
See Also:
  • Constructor Details

    • JCoRuntimeException

      public JCoRuntimeException(int group, String message)
      Creates an instance of the exception object with the specified message and group.
      Parameters:
      group - the error group
      message - the specified detail message.
      Since:
      JCo 3.0.6
    • JCoRuntimeException

      public JCoRuntimeException(int group, String key, String message)
      Creates an instance of the exception object with the specified message, group, and key.
      Parameters:
      group - the error group
      key - error code to identify the error
      message - the specified detail message.
    • JCoRuntimeException

      public JCoRuntimeException(int group, String message, Throwable causedBy)
      Creates an instance of the exception object with the specified message, group, and cause exception.
      Parameters:
      group - the error group
      message - the specified detail message.
      causedBy - the cause exception
      Since:
      JCo 3.0.6
    • JCoRuntimeException

      public JCoRuntimeException(int group, String key, String message, Throwable causedBy)
      Creates an instance of the exception object with the specified message, group, key, and cause exception.
      Parameters:
      group - the error group
      key - error code to identify the error
      message - the specified detail message.
      causedBy - the cause exception
  • Method Details

    • getGroup

      public final int getGroup()
      Returns the error group. Valid error groups are the constants JCoException.JCO_ERROR*.
      Returns:
      the error group
    • getKey

      public final String getKey()
      Returns the error key.
      Returns:
      the error key
    • toString

      public String toString()
      Returns a short description of this exception.
      Overrides:
      toString in class Throwable
      Returns:
      a string representation of this JCoRuntimeException.