wt.projmgmt.msproject
Class MsProjectXMLParseException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.xml.sax.SAXException
              extended bywt.util.xml.WTSAXException
                  extended bywt.projmgmt.msproject.MsProjectXMLParseException
All Implemented Interfaces:
LocalizableMessage, Message, Serializable

public class MsProjectXMLParseException
extends WTSAXException
implements Serializable

A specialization of WTSAXException for exceptions that occur while the MsProject XML file is being parsed.

Supported API: false

Extendable: false

See Also:
SAXParseException, Serialized Form

Field Summary
private static String CLASSNAME
           
private  int columnNumber
           
private  int lineNumber
           
private  String publicId
           
private static String RESOURCE
           
private static long serialVersionUID
           
private  String systemId
           
 
Fields inherited from class wt.util.xml.WTSAXException
 
Fields inherited from class org.xml.sax.SAXException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
MsProjectXMLParseException(Locator locator, String rb, String key, Object[] params)
          Constructs a MsProject exception with the specified locator and a localizable detailed message.
MsProjectXMLParseException(Locator locator, Throwable t, String rb, String key, Object[] params)
          Constructs a MsProject exception with the specified locator, an embedded Throwable object and a localizable detailed message

Supported API: false
MsProjectXMLParseException(SAXParseException parseException)
          Constructs a MsProject XML parse exception from the specified SAXParseException.
MsProjectXMLParseException(SAXParseException parseException, String rb, String key, Object[] params)
          Constructs a MsProject exception from the specified SAXParseException with a localizable detailed message.
 
Method Summary
 int getColumnNumber()
          The column number of the end of the text where the exception occurred.
 int getLineNumber()
          The line number of the end of the text where the exception occurred.
 String getPublicId()
          Get the public identifier of the entity where the exception occurred.
 String getSystemId()
          Get the system identifier of the entity where the exception occurred.
private  void initialize(Locator locator)
           
private  void initialize(SAXParseException parseException)
           
 
Methods inherited from class wt.util.xml.WTSAXException
getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getNestedThrowable, printStackTrace, printStackTrace, printStackTrace, toString, toString
 
Methods inherited from class org.xml.sax.SAXException
getException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

columnNumber

private int columnNumber

lineNumber

private int lineNumber

publicId

private String publicId

systemId

private String systemId

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

MsProjectXMLParseException

public MsProjectXMLParseException(Locator locator,
                                  String rb,
                                  String key,
                                  Object[] params)
Constructs a MsProject exception with the specified locator and a localizable detailed message.

Supported API: false

Parameters:
locator - the locator that indicates what was being parsed when the error occured
rb - the name of the base resource bundle subclass containing the localizable message
key - the key associated with the localizable message
params - an optional set of objects to be formatted into the localizable message text

MsProjectXMLParseException

public MsProjectXMLParseException(Locator locator,
                                  Throwable t,
                                  String rb,
                                  String key,
                                  Object[] params)
Constructs a MsProject exception with the specified locator, an embedded Throwable object and a localizable detailed message

Supported API: false

Parameters:
locator - the locator that indicates what was being parsed when the error occured
t - the embedded Throwable. It may be null.
rb - the name of the base resource bundle subclass containing the localizable message
key - the key associated with the localizable message
params - an optional set of objects to be formatted into the localizable message text

MsProjectXMLParseException

public MsProjectXMLParseException(SAXParseException parseException)
Constructs a MsProject XML parse exception from the specified SAXParseException.

The parse exception is not nested inside this exception.

Supported API: false

Parameters:
parseException - the parse exception to use as a basis for this new exception

MsProjectXMLParseException

public MsProjectXMLParseException(SAXParseException parseException,
                                  String rb,
                                  String key,
                                  Object[] params)
Constructs a MsProject exception from the specified SAXParseException with a localizable detailed message.

The parse exception is not nested inside this exception.

Supported API: false

Parameters:
parseException - the parse exception to use as a basis for this new exception
rb - the name of the base resource bundle subclass containing the localizable message
key - the key associated with the localizable message
params - an optional set of objects to be formatted into the localizable message text
Method Detail

getColumnNumber

public int getColumnNumber()
The column number of the end of the text where the exception occurred. Returns an integer representing the column number, or -1 if none is available.

The first column in a line is position 1.

Supported API: false

Returns:
int

getLineNumber

public int getLineNumber()
The line number of the end of the text where the exception occurred. Returns an integer representing the line number, or -1 if none is available.

Supported API: false

Returns:
int

getPublicId

public String getPublicId()
Get the public identifier of the entity where the exception occurred. Returns a string containing the public identifier, or null if none is available.

Supported API: false

Returns:
String

getSystemId

public String getSystemId()
Get the system identifier of the entity where the exception occurred. Returns a string containing the system identifier, or null if none is available.

If the system identifier is a URL, it will be resolved fully

Supported API: false

Returns:
String

initialize

private void initialize(Locator locator)

initialize

private void initialize(SAXParseException parseException)