Class ExceptionVal

All Implemented Interfaces:
HostResult

public class ExceptionVal extends Val
An exception val.
  • Method Details

    • message

      public String message()
      Returns the message.
      Returns:
      the message.
    • traces

      public List<TraceVal> traces()
      Returns the traces.
      Returns:
      the traces.
    • next

      public Optional<ExceptionVal> next()
      Returns the exception which is next to this in the chain.
      Returns:
      the exception which is next to this in the chain.
    • chain

      public ExceptionVal chain(ExceptionVal tail)
      Concatenates the chain of this and the chain of tail.
      Parameters:
      tail - the exception of the chain which is will be the tail of the result.
      Returns:
      an exception of the concatenated chain.
    • toRuntimeException

      public RuntimeException toRuntimeException()
      Convert this exception to Java RuntimeException.
      Returns:
      the converted RuntimeException.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object arg)
      Overrides:
      equals in class Object