|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
exceptions.PSSyntaxException
This exception is thrown by the isValid() methods of the postscript operators each time the user makes a syntax error.
There are various cases where syntax errors can occur which include:
1. Wrong number of arguments for a specific command.
2. Invalid type of PSLiteral for a specific operator.
3. Division by zero.
4. A path operator is called which requires a non-null current position.
| Constructor Summary | |
PSSyntaxException()
Calls the superclass constructor to print the "PSSyntaxException" string on the console. |
|
PSSyntaxException(java.lang.String param)
Calls the superclass constructor with the string given as parameter to print to the console. |
|
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PSSyntaxException()
public PSSyntaxException(java.lang.String param)
param - Represents the type of syntax error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||