java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cl.netswitch.lib.channel.CodecException
- All Implemented Interfaces:
Serializable
Signals that a encoder/decoder error of some kind has occurred.
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructs a newCodecException
instance.CodecException
(int errorCode) Constructs a newCodecException
instance with an error code.CodecException
(int errorCode, Throwable cause) Constructs a newCodecException
instance with an error code and cause.CodecException
(String message) Constructs a newCodecException
instance with a message.CodecException
(String message, int errorCode) Constructs a newCodecException
instance with a message and error code.CodecException
(String message, int errorCode, Throwable cause) Constructs a newCodecException
instance with a message, error code and cause.CodecException
(String message, Throwable cause) Constructs a newCodecException
instance with a message and cause.CodecException
(Throwable cause) Constructs a newCodecException
instance with a cause. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the error code of thisCodecException
.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CodecException
public CodecException()Constructs a newCodecException
instance. -
CodecException
Constructs a newCodecException
instance with a message.- Parameters:
message
- the detail message.
-
CodecException
Constructs a newCodecException
instance with a cause.- Parameters:
cause
- the cause of the exception.
-
CodecException
Constructs a newCodecException
instance with a message and cause.- Parameters:
message
- the detail message.cause
- the cause of the exception.
-
CodecException
public CodecException(int errorCode) Constructs a newCodecException
instance with an error code.- Parameters:
errorCode
- the error code.
-
CodecException
Constructs a newCodecException
instance with a message and error code.- Parameters:
message
- the detail message.errorCode
- the error code.
-
CodecException
Constructs a newCodecException
instance with an error code and cause.- Parameters:
errorCode
- the error code.cause
- the cause of the exception.
-
CodecException
Constructs a newCodecException
instance with a message, error code and cause.- Parameters:
message
- the detail message.errorCode
- the error code.cause
- the cause of the exception.
-
-
Method Details
-
getErrorCode
public int getErrorCode()Returns the error code of thisCodecException
.- Returns:
- the error code or zero (0) if none specified.
-