org.foray.ps
Class PsOperatorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.foray.ps.PsOperatorException
All Implemented Interfaces:
Serializable

public class PsOperatorException
extends Exception

Handles Exceptions that occur during the execution of a PostScript operand.

See Also:
Serialized Form

Constructor Summary
PsOperatorException(PsError errorCode)
          Constructor.
PsOperatorException(PsError errorCode, PsOperator offendingOperator)
          Constructor.
PsOperatorException(PsError errorCode, PsOperator offendingOperator, String message)
          Constructor.
PsOperatorException(Throwable throwable, PsError errorCode, PsOperator offendingOperator, String message)
          Constructor.
 
Method Summary
protected  PsError getErrorCode()
          Returns the PostScript error code.
 String getMessage()
          
protected  PsOperator getOffendingOperator()
          Returns the offending operator.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, 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

PsOperatorException

public PsOperatorException(Throwable throwable,
                           PsError errorCode,
                           PsOperator offendingOperator,
                           String message)
Constructor.

Parameters:
throwable - The exception to be wrapped in this exception.
errorCode - The PS error code for this exception.
offendingOperator - The PS operator that triggered the request that threw the exception.
message - The user message.

PsOperatorException

public PsOperatorException(PsError errorCode,
                           PsOperator offendingOperator,
                           String message)
Constructor.

Parameters:
errorCode - The PS error code for this exception.
offendingOperator - The PS operator that triggered the request that threw the exception.
message - The user message.

PsOperatorException

public PsOperatorException(PsError errorCode)
Constructor.

Parameters:
errorCode - The PS error code for this exception.

PsOperatorException

public PsOperatorException(PsError errorCode,
                           PsOperator offendingOperator)
Constructor.

Parameters:
errorCode - The PS error code for this exception.
offendingOperator - The PS operator that triggered the request that threw the exception.
Method Detail

getErrorCode

protected PsError getErrorCode()
Returns the PostScript error code.

Returns:
The PostScript error code.

getOffendingOperator

protected PsOperator getOffendingOperator()
Returns the offending operator.

Returns:
The offending operator.

getMessage

public String getMessage()

Overrides:
getMessage in class Throwable


Copyright © 2017. All rights reserved.