de.ispsoft.jaxme
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xml.sax.SAXException
              extended byde.ispsoft.jaxme.ValidationException
All Implemented Interfaces:
java.io.Serializable

public class ValidationException
extends org.xml.sax.SAXException

This exception is thrown to indicate invalid XML data.

Author:
Jochen Wiedmann
See Also:
Serialized Form

Constructor Summary
ValidationException(java.lang.String msg)
          Creates a new instance of ValidationException
ValidationException(java.lang.String pMsg, java.lang.Exception e)
          Creates a new instance of ValidationException wrapping some other Exception.
ValidationException(java.lang.String msg, java.lang.Exception e, org.xml.sax.Locator locator)
          Creates a new instance of ValidationException wrapping some other Exception.
ValidationException(java.lang.String pMsg, org.xml.sax.Locator locator)
          Creates a new instance of ValidationException
 
Method Summary
 int getErrorCode()
          Returns the application specific error code.
 org.xml.sax.Locator getLocator()
          Returns the locator that was used to construct the Exception or null.
 void setErrorCode(int pErrorCode)
          Sets the application specific error code.
 
Methods inherited from class org.xml.sax.SAXException
getException, getMessage, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationException

public ValidationException(java.lang.String msg)
Creates a new instance of ValidationException


ValidationException

public ValidationException(java.lang.String pMsg,
                           java.lang.Exception e)
Creates a new instance of ValidationException wrapping some other Exception.


ValidationException

public ValidationException(java.lang.String pMsg,
                           org.xml.sax.Locator locator)
Creates a new instance of ValidationException


ValidationException

public ValidationException(java.lang.String msg,
                           java.lang.Exception e,
                           org.xml.sax.Locator locator)
Creates a new instance of ValidationException wrapping some other Exception.

Method Detail

getLocator

public org.xml.sax.Locator getLocator()

Returns the locator that was used to construct the Exception or null.


getErrorCode

public int getErrorCode()

Returns the application specific error code. The value 0 is reserved to indicate the absence of an application specific error code.


setErrorCode

public void setErrorCode(int pErrorCode)

Sets the application specific error code. The value 0 is reserved to indicate the absence of an application specific error code.