Constructor SAXParseException
SAXParseException(String, ILocator)
Create a new SAXParseException from a message and a ILocator.
Declaration
public SAXParseException(string message, ILocator locator)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error or warning message. |
ILocator | locator | The locator object for the error or warning (may be null). |
Remarks
This constructor is especially useful when an application is creating its own exception from within a IContentHandler callback.
See Also
SAXParseException(String, ILocator, Exception)
Wrap an existing exception in a SAXParseException.
Declaration
public SAXParseException(string message, ILocator locator, Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error or warning message, or null to use the message from the embedded exception. |
ILocator | locator | The locator object for the error or warning (may be null). |
Exception | e | Any exception. |
Remarks
This constructor is especially useful when an application is creating its own exception from within a IContentHandler callback, and needs to wrap an existing exception that is not a subclass of SAXException.
See Also
SAXParseException(String, String, String, Int32, Int32)
Create a new SAXParseException.
Declaration
public SAXParseException(string message, string publicId, string systemId, int lineNumber, int columnNumber)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error or warning message. |
System.String | publicId | The public identifier of the entity that generated the error or warning. |
System.String | systemId | The system identifier of the entity that generated the error or warning. |
System.Int32 | lineNumber | The line number of the end of the text that caused the error or warning. |
System.Int32 | columnNumber | The column number of the end of the text that cause the error or warning. |
Remarks
This constructor is most useful for parser writers.
All parameters except the message are as if they were provided by a ILocator. For example, if the system identifier is a URL (including relative filename), the caller must resolve it fully before creating the exception.
SAXParseException(String, String, String, Int32, Int32, Exception)
Create a new SAXParseException with an embedded exception.
Declaration
public SAXParseException(string message, string publicId, string systemId, int lineNumber, int columnNumber, Exception e)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error or warning message, or null to use the message from the embedded exception. |
System.String | publicId | The public identifier of the entity that generated the error or warning. |
System.String | systemId | The system identifier of the entity that generated the error or warning. |
System.Int32 | lineNumber | The line number of the end of the text that caused the error or warning. |
System.Int32 | columnNumber | The column number of the end of the text that cause the error or warning. |
Exception | e | Another exception to embed in this one. |
Remarks
This constructor is most useful for parser writers who need to wrap an exception that is not a subclass of SAXException.
All parameters except the message and exception are as if they were provided by a ILocator. For example, if the system identifier is a URL (including relative filename), the caller must resolve it fully before creating the exception.