java.lang.Object
org.kink_lang.kink.HostResultCore
org.kink_lang.kink.Val
org.kink_lang.kink.ExceptionVal
- All Implemented Interfaces:
HostResult
An exception val.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionchain
(ExceptionVal tail) Concatenates the chain ofthis
and the chain oftail
.boolean
int
hashCode()
message()
Returns the message.next()
Returns the exception which is next to this in the chain.Convert this exception to Java RuntimeException.toRuntimeException
(List<StackTraceElement> baseStes) Convert this exception to Java RuntimeException, based on the given stack trace.toString()
traces()
Returns the traces.Methods inherited from class org.kink_lang.kink.Val
getIdentity, getVar, getVarSymHandleSet, hasVar, makeHostResultCore, setVar
-
Method Details
-
message
Returns the message.- Returns:
- the message.
-
traces
Returns the traces.- Returns:
- the traces.
-
next
Returns the exception which is next to this in the chain.- Returns:
- the exception which is next to this in the chain.
-
chain
Concatenates the chain ofthis
and the chain oftail
.- Parameters:
tail
- the exception of the chain which is will be the tail of the result.- Returns:
- an exception of the concatenated chain.
-
toRuntimeException
Convert this exception to Java RuntimeException.Calling this method is equivalent to
toRuntimeException(List.of(Thread.currentThread().getStackTrace()))
.- Returns:
- the converted RuntimeException.
-
toRuntimeException
Convert this exception to Java RuntimeException, based on the given stack trace.- Parameters:
baseStes
- stack trace elements which are used as the root of the traces of the result exception.- Returns:
- the converted RuntimeException.
-
toString
-
hashCode
public int hashCode() -
equals
-