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
}
| Constructor and Description |
|---|
UnknownDataElementException(java.lang.String msg,
java.lang.Throwable cause,
java.lang.String unknownElementName) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getUnknownElementName()
Returns a string representing the data element that is not recognized.
|
© Copyright IBM 2017