Class CommConnectionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class CommConnectionException
    extends java.io.IOException
    The Exception Class for the communication interfaces
    Version:
    1.2
    Author:
    Matthias Neumann (neumann@metratec.com)
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      CommConnectionException()
      Constructs a new communication exception.
      CommConnectionException​(int errorcode)
      Constructs a new communication exception with the specified error code.
      CommConnectionException​(int errorcode, java.lang.String s)
      Constructs a new communication exception with the specified detail message and error code.
      CommConnectionException​(java.lang.String s)
      Constructs a new communication exception with the specified detail message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()  
      java.lang.String getErrorDescription()
      Get human readable description of the error code.
      • Methods inherited from class java.lang.Throwable

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

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CommConnectionException

        public CommConnectionException()
        Constructs a new communication exception.
        See Also:
        Exception
      • CommConnectionException

        public CommConnectionException​(java.lang.String s)
        Constructs a new communication exception with the specified detail message.
        Parameters:
        s - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
        See Also:
        Exception(String message)
      • CommConnectionException

        public CommConnectionException​(int errorcode)
        Constructs a new communication exception with the specified error code.
        Parameters:
        errorcode - the error code. The detail message is saved for later retrieval by the getErrorCode() method.
      • CommConnectionException

        public CommConnectionException​(int errorcode,
                                       java.lang.String s)
        Constructs a new communication exception with the specified detail message and error code.
        Parameters:
        errorcode - the error code. The detail message is saved for later retrieval by the getErrorCode() method.
        s - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns:
        the error code ('0' if not initialize).
      • getErrorDescription

        public java.lang.String getErrorDescription()
        Get human readable description of the error code. Returns a verbose description of the error code that can be retrieved with the getErrorCode() method. This is largely the same information as contained in the comments of the ICommConnection interface.
        Returns:
        Verbose description of error code.