Class CommConnectionException

  • All Implemented Interfaces:
    Serializable

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

      • CommConnectionException

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

        public CommConnectionException​(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,
                                       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 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.