|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.apama.iaf.plugin.CodecException
public class CodecException
CodecException is the exception class thrown by a Java IAF Codec plugin.
Field Summary | |
---|---|
static int |
BADPROPERTIES
Codec was passed an invalid property set |
static int |
DECODINGFAILURE
Couldn't decode an incoming customer event |
static int |
ENCODINGFAILURE
Couldn't encode an incoming normalised event |
static int |
INTERNALERROR
Some unspecified internal error occurred |
static int |
MAPPINGFAILURE
Trouble sending decoded event to Semantic Mapper |
static int |
OK
Everything is fine |
static int |
TRANSPORTFAILURE
Trouble sending encoded event to transport |
Constructor Summary | |
---|---|
CodecException(java.lang.String message)
Constructs a CodecException from a string message describing the error, and assumes an error code of INTERNALERROR. |
|
CodecException(java.lang.String message,
int code)
Constructs a CodecException from a string message describing the error and a numeric code representing the class of error. |
|
CodecException(java.lang.String message,
java.lang.Throwable cause)
Constructs a CodecException from a string message describing the error, and an exception object that is the cause of the error. |
|
CodecException(java.lang.String message,
java.lang.Throwable cause,
int code)
Constructs a CodecException from a string message describing the error, a numeric code representing the class of error and an exception object that is the cause of the error. |
Method Summary | |
---|---|
int |
getErrorCode()
Returns the integer code representing the type of transport error that occurred. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int OK
public static final int INTERNALERROR
public static final int ENCODINGFAILURE
public static final int DECODINGFAILURE
public static final int TRANSPORTFAILURE
public static final int MAPPINGFAILURE
public static final int BADPROPERTIES
Constructor Detail |
---|
public CodecException(java.lang.String message)
message
- The cause of the error.public CodecException(java.lang.String message, int code)
message
- The cause of the error.code
- One of the CodecException error codes.public CodecException(java.lang.String message, java.lang.Throwable cause)
message
- The cause of the error. This message will be suffixed
with the message of the 'cause' exception.cause
- The exception object that caused the error.public CodecException(java.lang.String message, java.lang.Throwable cause, int code)
message
- The cause of the error. This message will be suffixed
with the message of the 'cause' exception.cause
- The exception object that caused the error.code
- One of the CodecException error codes.Method Detail |
---|
public int getErrorCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |