java.lang.Object
java.lang.Throwable
java.lang.Exception
coneforest.psylla.core.PsyErrorException
- All Implemented Interfaces:
PsyExecutable,PsyObject,Serializable
- Direct Known Subclasses:
PsyConcurrentModificationException,PsyDictStackUnderflowException,PsyInternalErrorException,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:
-
Field Summary
Fields inherited from interface coneforest.psylla.core.PsyObject
PSY_CLONE, PSY_EQ, PSY_HASHCODE, PSY_INSTANCEOF, PSY_NE, PSY_TOSTRING, PSY_TOSTRINGBUFFER, PSY_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newexceptionobject with null as its detail message.PsyErrorException(String message) Constructs a newexceptionobject with the specified detail message.PsyErrorException(String message, Throwable cause) PsyErrorException(Throwable cause) Constructs a newexceptionobject with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the emitter for thiserror.getName()Returns the name of thiserror.voidinvoke(PsyContext oContext) Invoke thisobjectin the given execution context.voidsetEmitter(PsyObject oEmitter) Set the emitter for thiserror.voidsetStacks(OperandStack ostack, ExecutionStack estack, DictStack dstack) Set the cloned copies of operand, execution and dictionary stacks.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface coneforest.psylla.core.PsyExecutable
asBinaryOperator, asComparator, asConsumer, asFunction, asPredicate, asSupplier, asUnaryOperator, invokeAndHandleMethods inherited from interface coneforest.psylla.core.PsyObject
convert, execute, psyClone, psyEq, psyHashCode, psyInstanceOf, psyNe, psySyntax, psyToString, psyToStringBuffer, psyType, toSyntaxString, typeName
-
Constructor Details
-
PsyErrorException
public PsyErrorException()Constructs a newexceptionobject with null as its detail message. -
PsyErrorException
Constructs a newexceptionobject with the specified cause.- Parameters:
cause- the cause.
-
PsyErrorException
-
PsyErrorException
Constructs a newexceptionobject with the specified detail message.- Parameters:
message- the detail message.
-
-
Method Details
-
invoke
Description copied from interface:PsyObjectInvoke thisobjectin the given execution context. Pushes thisobjectinto context’s operand stack.- Specified by:
invokein interfacePsyExecutable- Specified by:
invokein interfacePsyObject- Parameters:
oContext- the execution context.
-
getName
Returns the name of thiserror.- Returns:
- the name of this
error
-
setEmitter
Set the emitter for thiserror.- Parameters:
oEmitter- the emitter.
-
getEmitter
Returns the emitter for thiserror.- Returns:
- the emitter for this
error
-
setStacks
Set the cloned copies of operand, execution and dictionary stacks.- Parameters:
ostack- the operand stack.estack- the execution stack.dstack- the dictionary stack.
-