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:
-
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 newexception
object with null as its detail message.PsyErrorException
(String message) Constructs a newexception
object with the specified detail message.PsyErrorException
(Throwable cause) Constructs a newexception
object with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the emitter for thiserror
.getName()
Returns the name of thiserror
.void
invoke
(PsyContext oContext) Invoke thisobject
in the given execution context.void
setEmitter
(PsyObject oEmitter) Set the emitter for thiserror
.void
setStacks
(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, toString
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface coneforest.psylla.core.PsyExecutable
asBinaryOperator, asComparator, asConsumer, asFunction, asPredicate, asSupplier, asUnaryOperator, invokeAndHandle
Methods 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 newexception
object with null as its detail message. -
PsyErrorException
Constructs a newexception
object with the specified cause.- Parameters:
cause
- the cause.
-
PsyErrorException
Constructs a newexception
object with the specified detail message.- Parameters:
message
- the detail message.
-
-
Method Details
-
invoke
Description copied from interface:PsyObject
Invoke thisobject
in the given execution context. Pushes thisobject
into context’s operand stack.- Specified by:
invoke
in interfacePsyExecutable
- Specified by:
invoke
in 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.
-