Class SemanticMapperException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SemanticMapperException
    extends java.lang.Exception
    SemanticMapperException is the exception class thrown by the IAF Semantic Mapper.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int INJECTIONFAILURE
      Couldn't queue converted event for injection into the Engine
      static int INTERNALERROR
      Some unspecified internal error occurred
      static int MAPPINGFAILURE
      Couldn't convert customer event to an Apama event
      static int OK
      Everything is fine
    • Constructor Summary

      Constructors 
      Constructor Description
      SemanticMapperException​(java.lang.String message)
      Constructs a SemanticMapperException from a string message describing the error, and assumes an error code of MAPPINGFAILURE.
      SemanticMapperException​(java.lang.String message, int code)
      Constructs a SemanticMapperException from a string message describing the error and a numeric code representing the class of error.
      SemanticMapperException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a SemanticMapperException from a string message describing the error, and an exception object that is the cause of the error.
      SemanticMapperException​(java.lang.String message, java.lang.Throwable cause, int code)
      Constructs a SemanticMapperException 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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()
      Returns the integer code representing the type of transport error that occurred.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • INTERNALERROR

        public static final int INTERNALERROR
        Some unspecified internal error occurred
        See Also:
        Constant Field Values
      • MAPPINGFAILURE

        public static final int MAPPINGFAILURE
        Couldn't convert customer event to an Apama event
        See Also:
        Constant Field Values
      • INJECTIONFAILURE

        public static final int INJECTIONFAILURE
        Couldn't queue converted event for injection into the Engine
        See Also:
        Constant Field Values
    • Constructor Detail

      • SemanticMapperException

        public SemanticMapperException​(java.lang.String message)
        Constructs a SemanticMapperException from a string message describing the error, and assumes an error code of MAPPINGFAILURE.
        Parameters:
        message - The cause of the error.
      • SemanticMapperException

        public SemanticMapperException​(java.lang.String message,
                                       int code)
        Constructs a SemanticMapperException from a string message describing the error and a numeric code representing the class of error.
        Parameters:
        message - The cause of the error.
        code - One of the SemanticMapperException error codes.
      • SemanticMapperException

        public SemanticMapperException​(java.lang.String message,
                                       java.lang.Throwable cause)
        Constructs a SemanticMapperException from a string message describing the error, and an exception object that is the cause of the error. It assumes an error code of MAPPINGFAILURE.
        Parameters:
        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.
      • SemanticMapperException

        public SemanticMapperException​(java.lang.String message,
                                       java.lang.Throwable cause,
                                       int code)
        Constructs a SemanticMapperException 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.
        Parameters:
        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 SemanticMapperException error codes.
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns the integer code representing the type of transport error that occurred.
        Returns:
        One of the SemanticMapperException error codes.