Package com.metratec.lib.connection
Class CommConnectionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.metratec.lib.connection.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.
-
-
-
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 theThrowable.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 thegetErrorCode()
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 thegetErrorCode()
method.s
- the detail message. The detail message is saved for later retrieval by theThrowable.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 thegetErrorCode()
method. This is largely the same information as contained in the comments of the ICommConnection interface.- Returns:
- Verbose description of error code.
-
-