org.foray.ps
Enum PsError

java.lang.Object
  extended by java.lang.Enum<PsError>
      extended by org.foray.ps.PsError
All Implemented Interfaces:
Serializable, Comparable<PsError>

public enum PsError
extends Enum<PsError>

Enumeration of PostScript error types.


Enum Constant Summary
CONFIGURATIONERROR
          A "configurationerror" error.
DICTFULL
          A "dictfull" error.
DICTSTACKOVERFLOW
          A "dictstackoverflow" error.
DICTSTACKUNDERFLOW
          A "dictstackunderflow" error.
EXECSTACKOVERFLOW
          An "execstackoverflow" error.
HANDLEERROR
          A "handleerror" error.
INTERRUPT
          An "interrupt" error.
INVALIDACCESS
          An "invalidaccess" error.
INVALIDCONTEXT
          An "invalidcontext" error.
INVALIDEXIT
          An "invalidexit" error.
INVALIDFILEACCESS
          An "invalidfileaccess" error.
INVALIDFONT
          An "invalidfont" error.
INVALIDID
          An "invalidid" error.
INVALIDRESTORE
          An "invalidrestore" error.
IOERROR
          An "ioerror" error.
LIMITCHECK
          A "limitcheck" error.
NOCURRENTPOINT
          A "nocurrentpoint" error.
RANGECHECK
          A "rangecheck" error.
STACKOVERFLOW
          A "stackoverflow" error.
STACKUNDERFLOW
          A "stackunderflow" error.
SYNTAXERROR
          A "syntaxerror" error.
TIMEOUT
          A "timeout" error.
TYPECHECK
          A "typecheck" error.
UNDEFINED
          An "undefined" error.
UNDEFINEDFILENAME
          An "undefinedfilename" error.
UNDEFINEDRESOURCE
          An "undefinedresource" error.
UNDEFINEDRESULT
          An "undefinedresult" error.
UNMATCHEDMARK
          An "unmatchedmark" error.
UNREGISTERED
          An "unregistered" error.
VMERROR
          A "vmerror" error.
 
Method Summary
 String getName()
          Returns the PostScript name of this error.
static PsError valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PsError[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CONFIGURATIONERROR

public static final PsError CONFIGURATIONERROR
A "configurationerror" error.


DICTFULL

public static final PsError DICTFULL
A "dictfull" error.


DICTSTACKOVERFLOW

public static final PsError DICTSTACKOVERFLOW
A "dictstackoverflow" error.


DICTSTACKUNDERFLOW

public static final PsError DICTSTACKUNDERFLOW
A "dictstackunderflow" error.


EXECSTACKOVERFLOW

public static final PsError EXECSTACKOVERFLOW
An "execstackoverflow" error.


HANDLEERROR

public static final PsError HANDLEERROR
A "handleerror" error.


INTERRUPT

public static final PsError INTERRUPT
An "interrupt" error.


INVALIDACCESS

public static final PsError INVALIDACCESS
An "invalidaccess" error.


INVALIDCONTEXT

public static final PsError INVALIDCONTEXT
An "invalidcontext" error.


INVALIDEXIT

public static final PsError INVALIDEXIT
An "invalidexit" error.


INVALIDFILEACCESS

public static final PsError INVALIDFILEACCESS
An "invalidfileaccess" error.


INVALIDFONT

public static final PsError INVALIDFONT
An "invalidfont" error.


INVALIDID

public static final PsError INVALIDID
An "invalidid" error.


INVALIDRESTORE

public static final PsError INVALIDRESTORE
An "invalidrestore" error.


IOERROR

public static final PsError IOERROR
An "ioerror" error.


LIMITCHECK

public static final PsError LIMITCHECK
A "limitcheck" error.


NOCURRENTPOINT

public static final PsError NOCURRENTPOINT
A "nocurrentpoint" error.


RANGECHECK

public static final PsError RANGECHECK
A "rangecheck" error.


STACKOVERFLOW

public static final PsError STACKOVERFLOW
A "stackoverflow" error.


STACKUNDERFLOW

public static final PsError STACKUNDERFLOW
A "stackunderflow" error.


SYNTAXERROR

public static final PsError SYNTAXERROR
A "syntaxerror" error.


TIMEOUT

public static final PsError TIMEOUT
A "timeout" error.


TYPECHECK

public static final PsError TYPECHECK
A "typecheck" error.


UNDEFINED

public static final PsError UNDEFINED
An "undefined" error.


UNDEFINEDFILENAME

public static final PsError UNDEFINEDFILENAME
An "undefinedfilename" error.


UNDEFINEDRESOURCE

public static final PsError UNDEFINEDRESOURCE
An "undefinedresource" error.


UNDEFINEDRESULT

public static final PsError UNDEFINEDRESULT
An "undefinedresult" error.


UNMATCHEDMARK

public static final PsError UNMATCHEDMARK
An "unmatchedmark" error.


UNREGISTERED

public static final PsError UNREGISTERED
An "unregistered" error.


VMERROR

public static final PsError VMERROR
A "vmerror" error.

Method Detail

values

public static PsError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PsError c : PsError.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PsError valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getName

public String getName()
Returns the PostScript name of this error.

Returns:
The PostScript name of this error.


Copyright © 2017. All rights reserved.