|
|||||||||
Home >> All >> jpicedt >> graphic >> io >> [ parser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
jpicedt.graphic.io.parser
Class ParserException

java.lang.Objectjava.lang.Throwable
java.lang.Exception
jpicedt.graphic.io.parser.ParserException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ParserException.BeginGroupMismatch, ParserException.BlockMismatch, ParserException.EndGroupMismatch, ParserException.EndOfPicture, ParserException.EndOfPictureNotFound, ParserException.EOF, ParserException.IncompleteSequence, ParserException.NotFoundInFile, ParserException.NumberFormat, ParserException.NumberSign, ParserException.SyntaxError
- public class ParserException
- extends java.lang.Exception
An Exception manager used by Parsers The main purpose is to build a meaningfull string so that the user may be able to know where the syntax error comes from and what kind of error it is. See also the various locale strings starting with "ParserException" in the resource files.
- Since:
- picedt 1.0
- Version:
- >=JDK1.1.x
Nested Class Summary | |
static class |
ParserException.BeginGroupMismatch
signals that a "begin group" has no matching "end group" |
static class |
ParserException.BlockMismatch
signals that a closing delimiter has no matching opening delimiter (see EnclosingExpression) |
static class |
ParserException.EndGroupMismatch
signals that a "end group" has no matching "begin group" |
static class |
ParserException.EndOfPicture
signals that the end of the picture has been encoutered (this is NOT an error) |
static class |
ParserException.EndOfPictureNotFound
signals that the end of the picture hasn't been found |
static class |
ParserException.EOF
signals that the end of the file has been reached anormally (i.e. |
static class |
ParserException.IncompleteSequence
signals an incomplete SequenceExpression |
static class |
ParserException.NotFoundInFile
signals that a mandatory expression wasn't found |
static class |
ParserException.NumberFormat
aka NumberFormatException |
static class |
ParserException.NumberSign
signals an error concerning the sign of a number (see NumericalExpression) |
static class |
ParserException.SyntaxError
signals that a syntax error has occured |
Nested classes inherited from class java.lang.Throwable |
|
Field Summary | |
private Context |
context
the current state of the Context |
private java.lang.String |
errorCode
a string containing the error code message |
private AbstractRegularExpression |
expr
the expression that raised this exception |
Fields inherited from class java.lang.Exception |
|
Fields inherited from class java.lang.Throwable |
|
Constructor Summary | |
ParserException(java.lang.String errorCode,
Context context)
create a new ParserException with the specified error code and line number |
|
ParserException(java.lang.String errorCode,
Context context,
AbstractRegularExpression expr)
create a new ParserException, raised by the given Expression |
Method Summary | |
java.lang.String |
getLocale(java.lang.String str)
|
java.lang.String |
toString()
Get a human-readable representation of this Throwable. |
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 |
Field Detail |
errorCode
private java.lang.String errorCode
- a string containing the error code message
context
private Context context
- the current state of the Context
expr
private AbstractRegularExpression expr
- the expression that raised this exception
Constructor Detail |
ParserException
public ParserException(java.lang.String errorCode, Context context)
- create a new ParserException with the specified error code and line number
ParserException
public ParserException(java.lang.String errorCode, Context context, AbstractRegularExpression expr)
- create a new ParserException, raised by the given Expression
Method Detail |
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Throwable
- Get a human-readable representation of this Throwable. The detail message
is retrieved by getLocalizedMessage(). Then, with a null detail
message, this string is simply the object's class name; otherwise
the string is
getClass().getName() + ": " + message
.
getLocale
public java.lang.String getLocale(java.lang.String str)
|
|||||||||
Home >> All >> jpicedt >> graphic >> io >> [ parser overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |