Class CodecException
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
ConstructorsConstructorDescriptionConstructs a newCodecExceptioninstance.CodecException(int errorCode) Constructs a newCodecExceptioninstance with an error code.CodecException(int errorCode, Throwable cause) Constructs a newCodecExceptioninstance with an error code and cause.CodecException(String message) Constructs a newCodecExceptioninstance with a message.CodecException(String message, int errorCode) Constructs a newCodecExceptioninstance with a message and error code.CodecException(String message, int errorCode, Throwable cause) Constructs a newCodecExceptioninstance with a message, error code and cause.CodecException(String message, Throwable cause) Constructs a newCodecExceptioninstance with a message and cause.CodecException(Throwable cause) Constructs a newCodecExceptioninstance with a cause. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the error code of thisCodecException.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CodecException
public CodecException()Constructs a newCodecExceptioninstance. -
CodecException
Constructs a newCodecExceptioninstance with a message.- Parameters:
message- the detail message.
-
CodecException
Constructs a newCodecExceptioninstance with a cause.- Parameters:
cause- the cause of the exception.
-
CodecException
-
CodecException
public CodecException(int errorCode) Constructs a newCodecExceptioninstance with an error code.- Parameters:
errorCode- the error code.
-
CodecException
Constructs a newCodecExceptioninstance with a message and error code.- Parameters:
message- the detail message.errorCode- the error code.
-
CodecException
Constructs a newCodecExceptioninstance with an error code and cause.- Parameters:
errorCode- the error code.cause- the cause of the exception.
-
CodecException
-
-
Method Details
-
getErrorCode
public int getErrorCode()Returns the error code of thisCodecException.- Returns:
- the error code or zero (0) if none specified.
-