Developing Apama Applications > Developing 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 © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.