All Packages Class Hierarchy This Package Previous Next Index
Class com.jclark.xml.parse.NotWellFormedException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----java.io.IOException
|
+----com.jclark.xml.parse.NotWellFormedException
- public class NotWellFormedException
- extends IOException
- implements ParseLocation
Thrown when an XML document is not well-formed.
-
getByteIndex()
- Returns the index of the byte in the entity where the error occurred.
-
getColumnNumber()
- Returns the column number where the error occurred.
-
getEntityBase()
- Returns the URL used as the base URL for resolving relative URLs
contained in the entity where the error occurred.
-
getEntityLocation()
- Returns the location of the external entity where the
the error occurred in a form suitable for use in an error message.
-
getLineNumber()
- Returns the line number where the error occured.
-
getMessageWithoutLocation()
- Returns a description of the error that does not include
the location of the error.
getEntityLocation
public final String getEntityLocation()
- Returns the location of the external entity where the
the error occurred in a form suitable for use in an error message.
This is typically a URI or a filename.
getEntityBase
public final URL getEntityBase()
- Returns the URL used as the base URL for resolving relative URLs
contained in the entity where the error occurred.
getLineNumber
public final int getLineNumber()
- Returns the line number where the error occured.
The first line has number 1.
getColumnNumber
public final int getColumnNumber()
- Returns the column number where the error occurred.
The first column has number 0.
getByteIndex
public final long getByteIndex()
- Returns the index of the byte in the entity where the error occurred.
The first byte has offset 0.
getMessageWithoutLocation
public final String getMessageWithoutLocation()
- Returns a description of the error that does not include
the location of the error.
getMessage
returns a description of the error
that does include the location.
All Packages Class Hierarchy This Package Previous Next Index