Class FailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.opengamma.strata.collect.result.FailureException
-
- All Implemented Interfaces:
Serializable
public class FailureException extends RuntimeException
An exception thrown when a failureResult
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
-
-
-
-
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
-
-