com.softwareag.centrasite.appl.framework.parser
Class CSAppFrameworkParserException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.softwareag.centrasite.appl.framework.CSAppFrameworkException
              extended by com.softwareag.centrasite.appl.framework.parser.CSAppFrameworkParserException
All Implemented Interfaces:
java.io.Serializable, org.xml.sax.ext.Locator2, org.xml.sax.Locator

public class CSAppFrameworkParserException
extends CSAppFrameworkException
implements org.xml.sax.ext.Locator2

The generator classes will throw instances of this class.

See Also:
Serialized Form

Constructor Summary
CSAppFrameworkParserException(org.xml.sax.Locator pLocator, java.lang.String pMessage)
          Creates a new instance with the given detail message and no cause.
CSAppFrameworkParserException(org.xml.sax.Locator pLocator, java.lang.String pMessage, java.lang.Throwable pCause)
          Creates a new instance with the given detail message and cause.
CSAppFrameworkParserException(org.xml.sax.Locator pLocator, java.lang.Throwable pCause)
          Creates a new instance with the given cause.
 
Method Summary
static java.lang.String asLocation(org.xml.sax.Locator pLocator)
          Returns a human readable description of the given location.
static org.xml.sax.Locator asLocator(org.xml.sax.SAXException e)
          Converts the given instance of SAXException into an instance of Locator.
 int getColumnNumber()
           
 java.lang.String getEncoding()
           
 int getLineNumber()
           
 org.xml.sax.Locator getLocator()
          Returns the exceptions locator.
 java.lang.String getMessage()
           
 java.lang.String getPublicId()
           
 java.lang.String getSystemId()
           
 java.lang.String getXMLVersion()
           
 
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
 

Constructor Detail

CSAppFrameworkParserException

public CSAppFrameworkParserException(org.xml.sax.Locator pLocator,
                                     java.lang.String pMessage,
                                     java.lang.Throwable pCause)
Creates a new instance with the given detail message and cause.

Parameters:
pMessage - The detail message.
pCause - The exceptions cause.

CSAppFrameworkParserException

public CSAppFrameworkParserException(org.xml.sax.Locator pLocator,
                                     java.lang.String pMessage)
Creates a new instance with the given detail message and no cause.

Parameters:
pMessage - The detail message.

CSAppFrameworkParserException

public CSAppFrameworkParserException(org.xml.sax.Locator pLocator,
                                     java.lang.Throwable pCause)
Creates a new instance with the given cause. The detail message is obtained by invoking Throwable.getMessage() on the cause.

Method Detail

getLocator

public org.xml.sax.Locator getLocator()
Returns the exceptions locator.


getEncoding

public java.lang.String getEncoding()
Specified by:
getEncoding in interface org.xml.sax.ext.Locator2

getXMLVersion

public java.lang.String getXMLVersion()
Specified by:
getXMLVersion in interface org.xml.sax.ext.Locator2

getColumnNumber

public int getColumnNumber()
Specified by:
getColumnNumber in interface org.xml.sax.Locator

getLineNumber

public int getLineNumber()
Specified by:
getLineNumber in interface org.xml.sax.Locator

getPublicId

public java.lang.String getPublicId()
Specified by:
getPublicId in interface org.xml.sax.Locator

getSystemId

public java.lang.String getSystemId()
Specified by:
getSystemId in interface org.xml.sax.Locator

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

asLocator

public static org.xml.sax.Locator asLocator(org.xml.sax.SAXException e)
Converts the given instance of SAXException into an instance of Locator.


asLocation

public static java.lang.String asLocation(org.xml.sax.Locator pLocator)
Returns a human readable description of the given location.