Package com.opengamma.strata.collect.result
Result data structures.
The result model is typically used in a subsystem following functional programming style.
Functions will be written to have Result<T>
as the return type.
Instead of using exceptions, code will return failure results.
-
Interface Summary Interface Description FailureItemProvider Provides access to aFailureItem
. -
Class Summary Class Description Failure Description of a failed result.Failure.Meta The meta-bean forFailure
.FailureAttributeKeys Common attribute keys for FailureItem.getAttributes().FailureItem Details of a single failed item.FailureItem.Meta The meta-bean forFailureItem
.FailureItems A list of failure items.FailureItems.Meta The meta-bean forFailureItems
.FailureItemsBuilder A builder for a list of failure items.Result<T> The result of an operation, either success or failure.Result.Meta<T> The meta-bean forResult
.ValueWithFailures<T> A value with associated failures.ValueWithFailures.Meta<T> The meta-bean forValueWithFailures
. -
Enum Summary Enum Description FailureReason Represents the reason why failure occurred. -
Exception Summary Exception Description FailureException An exception thrown when a failureResult
is encountered and the failure can't be handled.FailureItemException An exception thrown when an exception can be represented by aFailureItem
.IllegalArgFailureException Exception thrown when input is invalid.ParseFailureException Exception thrown when parsing.