Class FailureException

  • All Implemented Interfaces:
    java.io.Serializable

    public class FailureException
    extends java.lang.RuntimeException
    An exception thrown when a failure Result is encountered and the failure can't be handled.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FailureException​(Failure failure)
      Returns an exception wrapping a failure that couldn't be handled.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Failure getFailure()
      Returns the details of the failure.
      • 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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FailureException

        public FailureException​(Failure failure)
        Returns an exception wrapping a failure that couldn't be handled.
        Parameters:
        failure - a failure that couldn't be handled
    • Method Detail

      • getFailure

        public Failure getFailure()
        Returns the details of the failure.
        Returns:
        the details of the failure