Class CadTransportException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    T1Exception, TLP224Exception

    public abstract class CadTransportException
    extends java.lang.Exception
    This abstract class is the parent class of all CAD exception classes. It serves as an ancestor for T1Exception (for T=1 CAD) as well as TLP225Exception (for T=0 CAD) classes.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.util.ResourceBundle _messages
      Properties file with messages
      protected int status
      Error code
      static int STATUS_UNKNOWN
      Error code constant
    • Constructor Summary

      Constructors 
      Constructor Description
      CadTransportException​(int status)
      Constructor method for exception class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()
      Returns a String describing this exception.
      int getStatus()
      Returns the status associated with the exception.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • _messages

        protected static java.util.ResourceBundle _messages
        Properties file with messages
      • status

        protected int status
        Error code
      • STATUS_UNKNOWN

        public static int STATUS_UNKNOWN
        Error code constant
    • Constructor Detail

      • CadTransportException

        public CadTransportException​(int status)
        Constructor method for exception class.
        Parameters:
        status - Initialization status for this exception.
    • Method Detail

      • getStatus

        public int getStatus()
        Returns the status associated with the exception.
        Returns:
        The error status
      • getMessage

        public java.lang.String getMessage()
        Returns a String describing this exception.
        Overrides:
        getMessage in class java.lang.Throwable
        Returns:
        the String describing this exception