com.ibm.ia.common

Class UnknownDataElementException

  • All Implemented Interfaces:
    java.io.Serializable


    public class UnknownDataElementException
    extends DataParseException

    An exception that is thrown by an event or entity parsing API when the solution model does not recognized the supplied serialisation.

    The following example shows how this exception can be caught to determine that an XML string does not represent an event.

         try {
             event = eventFactory.parseEvent(DataFormat.TYPED_XML, inputString);
             
         } catch (UnknownDataElementException e) {
             // the XML content in inputString is not a event in the solution
             
         } catch (DataParseException e) {
             // inputString is not valid XML content
             
         }
     
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      UnknownDataElementException(java.lang.String msg, java.lang.Throwable cause, java.lang.String unknownElementName) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getUnknownElementName()
      Returns a string representing the data element that is not recognized.
      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • UnknownDataElementException

        public UnknownDataElementException(java.lang.String msg,
                                   java.lang.Throwable cause,
                                   java.lang.String unknownElementName)
    • Method Detail

      • getUnknownElementName

        public java.lang.String getUnknownElementName()
        Returns a string representing the data element that is not recognized.
        Returns:

© Copyright IBM 2017