Uses of Class
com.opengamma.strata.collect.result.Failure
-
Packages that use Failure Package Description com.opengamma.strata.calc.marketdata Provides the ability to obtain market data and perform calibrations and scenario perturbations.com.opengamma.strata.collect.result Result data structures. -
-
Uses of Failure in com.opengamma.strata.calc.marketdata
Methods in com.opengamma.strata.calc.marketdata that return types with arguments of type Failure Modifier and Type Method Description ImmutableMap<MarketDataId<?>,Failure>
BuiltMarketData. getTimeSeriesFailures()
Gets the failures that occurred when building time series of market data values.ImmutableMap<MarketDataId<?>,Failure>
BuiltScenarioMarketData. getTimeSeriesFailures()
Gets the failures that occurred when building time series of market data values.ImmutableMap<MarketDataId<?>,Failure>
BuiltMarketData. getValueFailures()
Gets the failures when building single market data values.ImmutableMap<MarketDataId<?>,Failure>
BuiltScenarioMarketData. getValueFailures()
Gets the failures when building single market data values.org.joda.beans.MetaProperty<ImmutableMap<MarketDataId<?>,Failure>>
BuiltScenarioMarketData.Meta. timeSeriesFailures()
The meta-property for thetimeSeriesFailures
property.org.joda.beans.MetaProperty<ImmutableMap<MarketDataId<?>,Failure>>
BuiltScenarioMarketData.Meta. valueFailures()
The meta-property for thevalueFailures
property. -
Uses of Failure in com.opengamma.strata.collect.result
Methods in com.opengamma.strata.collect.result that return Failure Modifier and Type Method Description static Failure
Failure. from(Throwable th)
Creates a failure from the throwable.Failure
FailureException. getFailure()
Returns the details of the failure.Failure
Result. getFailure()
Returns the failure instance indicating the reason why the calculation failed.Failure
Failure. mapItems(Function<FailureItem,FailureItem> function)
Processes the failure by applying a function that alters the items.static Failure
Failure. of(FailureItem item)
Obtains a failure for a single failure item.static Failure
Failure. of(FailureItem item, FailureItem... additionalItems)
Obtains a failure for multiple failure items.static Failure
Failure. of(FailureReason reason, Exception cause)
Obtains a failure from a reason and exception.static Failure
Failure. of(FailureReason reason, Exception cause, String message, Object... messageArgs)
Obtains a failure from a reason, message and exception.static Failure
Failure. of(FailureReason reason, String message, Object... messageArgs)
Obtains a failure from a reason and message.static Failure
Failure. of(FailureReason reason, Throwable cause)
Obtains a failure from a reason and throwable.static Failure
Failure. of(FailureReason reason, Throwable cause, String message, Object... messageArgs)
Obtains a failure from a reason, message and throwable.static Failure
Failure. of(Collection<FailureItem> items)
Obtains a failure for a non-empty collection of failure items.Methods in com.opengamma.strata.collect.result that return types with arguments of type Failure Modifier and Type Method Description Class<? extends Failure>
Failure.Meta. beanType()
org.joda.beans.BeanBuilder<? extends Failure>
Failure.Meta. builder()
org.joda.beans.MetaProperty<Failure>
Result.Meta. failure()
The meta-property for thefailure
property.Methods in com.opengamma.strata.collect.result with parameters of type Failure Modifier and Type Method Description static <R> Result<R>
Result. failure(Failure failure)
Creates a failed result containing a failure.Method parameters in com.opengamma.strata.collect.result with type arguments of type Failure Modifier and Type Method Description T
Result. getValueOrElseApply(Function<Failure,T> mapper)
Returns the actual result value if calculated successfully, else the specified function is applied to theFailure
that occurred.void
Result. ifFailure(Consumer<Failure> consumer)
Executes the given consumer if the result represents a failure.Result<T>
Result. mapFailure(Function<Failure,Failure> function)
Processes a failed result by applying a function that alters the failure.Result<T>
Result. mapFailure(Function<Failure,Failure> function)
Processes a failed result by applying a function that alters the failure.Constructors in com.opengamma.strata.collect.result with parameters of type Failure Constructor Description FailureException(Failure failure)
Returns an exception wrapping a failure that couldn't be handled.
-