Apama Documentation : Connecting Apama Applications to External Components : Developing Custom Adapters : Java Codec Plug-in Development : The Codec Plug-in Development Specification for Java : Semantic Mapper exceptions
Semantic Mapper exceptions
Codec plug-ins should never need to construct or throw SemanticMapperException objects, but they need to be able to catch them if they are thrown from the SemanticMapper.sendNormalisedEvent method when it is called by the event codec.
SemanticMapperException has exactly the same set of constructors as the CodecException class described above. The only significant different is the set of error codes, which for SemanticMapperException are as follows:
/**
* Some unspecified internal error occurred
*/
public static final int INTERNALERROR = 1;
/**
* Couldn't convert customer event to an Apama event
*/
public static final int MAPPINGFAILURE = 2;
/**
* Couldn't queue converted event for injection into the Engine
*/
public static final int INJECTIONFAILURE = 3;
Copyright © 2013-2016 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback