multivalent
Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
multivalent.ParseException
- All Implemented Interfaces:
- java.io.Serializable
- public class ParseException
- extends java.lang.Exception
MediaAdaptors should return this when encountering an unfixable/unrecoverable parsing error.
NB: this is different from ParseException
.
- Version:
- $Revision: 1.2 $ $Date: 2002/10/03 22:15:59 $
- See Also:
MediaAdaptor
,
Serialized Form
Constructor Summary |
ParseException(java.lang.String message)
Parse error not traceable to specific byte/line. |
ParseException(java.lang.String message,
int line,
int chr)
Text formats report the line and character offsets. |
ParseException(java.lang.String message,
long posn)
Binary data formats report the byte offset into the file. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ParseException
public ParseException(java.lang.String message)
- Parse error not traceable to specific byte/line.
ParseException
public ParseException(java.lang.String message,
long posn)
- Binary data formats report the byte offset into the file.
ParseException
public ParseException(java.lang.String message,
int line,
int chr)
- Text formats report the line and character offsets.
getPosn
public long getPosn()
getLine
public int getLine()
getChar
public int getChar()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Throwable