This is an enumeration of common exception types providing
categories within the CommonException and CommonRuntimeException.
NOTE: The important definition in the enum is the name of the enum which is
instantiated. This name is used to match in the exceptionResolver.xml
for the associated component group. The enum description and id are there for
potential logging and future use.
- Ikasan Development Team
Exception type not defined
UNDEFINED("Exception type was not defined", 0),
Failure to instantiate an object within the ResourceLoader class
RESOURCE_LOADER_FAILED("Failed on invocation within ResourceLoader", 1),
Failure to instantiate an Envelope
ENVELOPE_INSTANTIATION_FAILED("Failed on instantiate an Envelope", 2),
Failure to instantiate a Payload
PAYLOAD_INSTANTIATION_FAILED("Failed on instantiate a Payload", 3),
We must ensure each payload has a name
INVALID_PAYLOAD_NAME("Payload name was undefined or invalid", 4),
We must ensure each payload has a valid spec
INVALID_PAYLOAD_SPEC("Payload spec was undefined or invalid", 5),
We must ensure each payload has a source system
INVALID_PAYLOAD_SRC_SYSTEM("Payload srcSystem was undefined or invalid", 6),
Failure on validation of an XML document
FAILED_XML_VALIDATION("Failed on validation of an XML document", 7),
exception type description
exception type unique identifier
Creates a new instance of
the specified exception description and id.
logger.debug("CommonExceptionType constructor created id [" + this.id + "].");
Returns CommonExceptionType description.
- String description
Returns CommonExceptionType id.
Returns an array of current all CommonExceptionTypes.
- CommonExceptionType these exception types
Get actual name of the enum instance
Comparison for enum equality
if(exceptionType == null)
Runs this class for testing.