Class PsyErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
coneforest.psylla.core.PsyErrorException
All Implemented Interfaces:
PsyExecutable, PsyObject, Serializable
Direct Known Subclasses:
PsyConcurrentModificationException, PsyDictStackUnderflowException, PsyInterruptException, PsyInvalidContextException, PsyInvalidExitException, PsyInvalidExternalException, PsyInvalidStateException, PsyIOErrorException, PsyLimitCheckException, PsyNotImplementedException, PsyRangeCheckException, PsySecurityErrorException, PsyStackUnderflowException, PsySyntaxErrorException, PsyTypeCheckException, PsyUndefinedException, PsyUndefinedResultException, PsyUnmatchedMarkException, PsyUnregisteredException, PsyUnsupportedException

@Type("error") @ErrorType("error") public class PsyErrorException extends Exception implements PsyExecutable
See Also:
  • Constructor Details

    • PsyErrorException

      public PsyErrorException()
      Constructs a new exception object with null as its detail message.
    • PsyErrorException

      public PsyErrorException(Throwable cause)
      Constructs a new exception object with the specified cause.
      Parameters:
      cause - the cause.
    • PsyErrorException

      public PsyErrorException(String message)
      Constructs a new exception object with the specified detail message.
      Parameters:
      message - the detail message.
  • Method Details

    • invoke

      public void invoke(PsyContext oContext)
      Description copied from interface: PsyObject
      Invoke this object in the given execution context. Pushes this object into context’s operand stack.
      Specified by:
      invoke in interface PsyExecutable
      Specified by:
      invoke in interface PsyObject
      Parameters:
      oContext - the execution context.
    • getName

      public String getName()
      Returns the name of this error.
      Returns:
      the name of this error
    • setEmitter

      public void setEmitter(PsyObject oEmitter)
      Set the emitter for this error.
      Parameters:
      oEmitter - the emitter.
    • getEmitter

      public PsyObject getEmitter()
      Returns the emitter for this error.
      Returns:
      the emitter for this error
    • setStacks

      public void setStacks(OperandStack ostack, ExecutionStack estack, DictStack dstack)
      Set the cloned copies of operand, execution and dictionary stacks.
      Parameters:
      ostack - the operand stack.
      estack - the execution stack.
      dstack - the dictionary stack.