org.openexi.sax
Class TransmogrifierException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openexi.sax.TransmogrifierException
All Implemented Interfaces:
java.io.Serializable

public final class TransmogrifierException
extends java.lang.Exception

Exception handler for the Transmogrifier.

See Also:
Serialized Form

Field Summary
static int PREFIX_BOUND_TO_ANOTHER_NAMESPACE
          Prefix is bound to another namespace.
static int PREFIX_NOT_BOUND
          Prefix is not bound.
static int SAX_ERROR
          SAX error reported by XML parser.
static int SCRIBER_ERROR
          Errors reported by Scriber.
static int UNEXPECTED_ATTR
          Unexpected Attribute.
static int UNEXPECTED_BINARY_VALUE
          Unexpected Binary value.
static int UNEXPECTED_CHARS
          Unexpected Character Sequence.
static int UNEXPECTED_ED
          Unexpected End of Document event.
static int UNEXPECTED_ELEM
          Unexpected Element.
static int UNEXPECTED_END_ELEM
          Unexpected End of Element event.
static int UNEXPECTED_SD
          Unexpected Start of Document event.
static int UNHANDLED_SAXPARSER_FEATURE
          Unhandled SAX parser feature.
 
Method Summary
 int getCode()
          Returns a code that represents the type of the exception.
 java.lang.Exception getException()
          Returns an Exception object.
 org.xml.sax.Locator getLocator()
          Returns the locator that is associated with this compilation error.
 java.lang.String getMessage()
          Returns a message that describes the exception.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNEXPECTED_ELEM

public static final int UNEXPECTED_ELEM
Unexpected Element.

See Also:
Constant Field Values

UNEXPECTED_ATTR

public static final int UNEXPECTED_ATTR
Unexpected Attribute.

See Also:
Constant Field Values

UNEXPECTED_CHARS

public static final int UNEXPECTED_CHARS
Unexpected Character Sequence.

See Also:
Constant Field Values

UNEXPECTED_BINARY_VALUE

public static final int UNEXPECTED_BINARY_VALUE
Unexpected Binary value.

See Also:
Constant Field Values

UNHANDLED_SAXPARSER_FEATURE

public static final int UNHANDLED_SAXPARSER_FEATURE
Unhandled SAX parser feature.

See Also:
Constant Field Values

SAX_ERROR

public static final int SAX_ERROR
SAX error reported by XML parser.

See Also:
Constant Field Values

UNEXPECTED_END_ELEM

public static final int UNEXPECTED_END_ELEM
Unexpected End of Element event.

See Also:
Constant Field Values

UNEXPECTED_ED

public static final int UNEXPECTED_ED
Unexpected End of Document event.

See Also:
Constant Field Values

UNEXPECTED_SD

public static final int UNEXPECTED_SD
Unexpected Start of Document event.

See Also:
Constant Field Values

PREFIX_NOT_BOUND

public static final int PREFIX_NOT_BOUND
Prefix is not bound.

See Also:
Constant Field Values

PREFIX_BOUND_TO_ANOTHER_NAMESPACE

public static final int PREFIX_BOUND_TO_ANOTHER_NAMESPACE
Prefix is bound to another namespace.

See Also:
Constant Field Values

SCRIBER_ERROR

public static final int SCRIBER_ERROR
Errors reported by Scriber.

See Also:
Constant Field Values
Method Detail

getCode

public int getCode()
Returns a code that represents the type of the exception.

Returns:
error code

getMessage

public java.lang.String getMessage()
Returns a message that describes the exception.

Overrides:
getMessage in class java.lang.Throwable
Returns:
error message

getException

public java.lang.Exception getException()
Returns an Exception object.

Returns:
the error as an Exception instance

getLocator

public org.xml.sax.Locator getLocator()
Returns the locator that is associated with this compilation error.

Returns:
a Locator if available, otherwise null