Uses of Class
com.opengamma.strata.collect.result.FailureItem
-
Packages that use FailureItem Package Description com.opengamma.strata.collect.result Result data structures. -
-
Uses of FailureItem in com.opengamma.strata.collect.result
Methods in com.opengamma.strata.collect.result that return FailureItem Modifier and Type Method Description static FailureItem
FailureItem. from(Throwable th)
Creates a failure item from the throwable.FailureItem
FailureItemException. getFailureItem()
Gets the failure item.FailureItem
FailureItemProvider. getFailureItem()
Gets the failure item.FailureItem
IllegalArgFailureException. getFailureItem()
Gets the failure item.FailureItem
ParseFailureException. getFailureItem()
Gets the failure item.FailureItem
Failure. getFirstItem()
Gets the first failure item.FailureItem
FailureItem. mapMessage(Function<String,String> function)
Processes the failure item by applying a function that alters the message.static FailureItem
FailureItem. of(FailureReason reason, String message, Object... messageArgs)
Obtains a failure from a reason and message.static FailureItem
FailureItem. of(FailureReason reason, Throwable cause)
Obtains a failure from a reason and exception.static FailureItem
FailureItem. of(FailureReason reason, Throwable cause, String messageTemplate, Object... messageArgs)
Obtains a failure from a reason, throwable and message.FailureItem
FailureItem. withAttribute(String key, String value)
Returns an instance with the specified attribute added.FailureItem
FailureItem. withAttributes(Map<String,String> attributes)
Returns an instance with the specified attributes added.Methods in com.opengamma.strata.collect.result that return types with arguments of type FailureItem Modifier and Type Method Description Class<? extends FailureItem>
FailureItem.Meta. beanType()
org.joda.beans.BeanBuilder<? extends FailureItem>
FailureItem.Meta. builder()
org.joda.beans.MetaProperty<ImmutableList<FailureItem>>
FailureItems.Meta. failures()
The meta-property for thefailures
property.org.joda.beans.MetaProperty<ImmutableList<FailureItem>>
ValueWithFailures.Meta. failures()
The meta-property for thefailures
property.ImmutableList<FailureItem>
FailureItems. getFailures()
Gets the failures.ImmutableList<FailureItem>
ValueWithFailures. getFailures()
Gets the failure items.ImmutableSet<FailureItem>
Failure. getItems()
Gets the set of failure items.org.joda.beans.MetaProperty<ImmutableSet<FailureItem>>
Failure.Meta. items()
The meta-property for theitems
property.Methods in com.opengamma.strata.collect.result with parameters of type FailureItem Modifier and Type Method Description FailureItemsBuilder
FailureItemsBuilder. addFailure(FailureItem failure)
Adds a failure to the list.FailureItems
FailureItems. combinedWith(FailureItem... otherFailures)
Combines these failure items with other failure items.static <R> Result<R>
Result. failure(FailureItem failureItem)
Creates a failed result containing a failure item.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 FailureItems
FailureItems. of(FailureItem... failures)
Creates an instance from the list of failures.static <T> ValueWithFailures<T>
ValueWithFailures. of(T successValue, FailureItem... failures)
Creates an instance wrapping the success value and failures.Method parameters in com.opengamma.strata.collect.result with type arguments of type FailureItem Modifier and Type Method Description FailureItemsBuilder
FailureItemsBuilder. addAllFailures(List<FailureItem> failures)
Adds a list of failures to the list.FailureItems
FailureItems. combinedWith(List<FailureItem> otherFailures)
Combines these failure items with other failure items.Result<T>
Result. mapFailureItems(Function<FailureItem,FailureItem> function)
Processes a failed result by applying a function that alters the failure items.Result<T>
Result. mapFailureItems(Function<FailureItem,FailureItem> function)
Processes a failed result by applying a function that alters the failure items.ValueWithFailures<T>
ValueWithFailures. mapFailures(Function<FailureItem,FailureItem> function)
Processes the value by applying a function that alters the failures.ValueWithFailures<T>
ValueWithFailures. mapFailures(Function<FailureItem,FailureItem> function)
Processes the value by applying a function that alters the failures.Failure
Failure. mapItems(Function<FailureItem,FailureItem> function)
Processes the failure by applying a function that alters the items.Failure
Failure. mapItems(Function<FailureItem,FailureItem> function)
Processes the failure by applying a function that alters the items.static Failure
Failure. of(Collection<FailureItem> items)
Obtains a failure for a non-empty collection of failure items.static FailureItems
FailureItems. of(List<FailureItem> failures)
Creates an instance from the list of failures.static <T> ValueWithFailures<T>
ValueWithFailures. of(T successValue, Collection<FailureItem> failures)
Creates an instance wrapping the success value and failures.static <T> ValueWithFailures<T>
ValueWithFailures. of(T successValue, List<FailureItem> failures)
Creates an instance wrapping the success value and failures.ValueWithFailures<T>
ValueWithFailures. withAdditionalFailures(List<FailureItem> additionalFailures)
Returns a new instance with the specified failures, retaining the current value.<R> ValueWithFailures<R>
ValueWithFailures. withValue(R value, List<FailureItem> additionalFailures)
Returns a new instance with the specified value, combining the failures.Constructors in com.opengamma.strata.collect.result with parameters of type FailureItem Constructor Description FailureItemException(FailureItem item)
Returns an exception wrapping the failure item.IllegalArgFailureException(FailureItem item)
Returns an exception wrapping the failure item.ParseFailureException(FailureItem item)
Returns an exception wrapping the failure item.
-