exceptions
Class PSSyntaxException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byexceptions.PSSyntaxException
All Implemented Interfaces:
java.io.Serializable

public class PSSyntaxException
extends java.lang.Exception

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.

See Also:
Serialized Form

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

PSSyntaxException

public PSSyntaxException()
Calls the superclass constructor to print the "PSSyntaxException" string on the console.


PSSyntaxException

public PSSyntaxException(java.lang.String param)
Calls the superclass constructor with the string given as parameter to print to the console.

Parameters:
param - Represents the type of syntax error.