Developing Apama Applications > Developing Adapters > Java Codec Plug-in Development > The Java Codec Plug-in Development Specification > 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 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.