| Package | Description |
|---|---|
| com.opengamma.strata.collect.result |
Result data structures.
|
| Modifier and Type | Method and Description |
|---|---|
FailureReason |
Failure.getReason()
Gets the reason associated with the failure.
|
FailureReason |
FailureItem.getReason()
Gets the reason associated with the failure.
|
static FailureReason |
FailureReason.of(String name)
Obtains an instance from the specified name.
|
static FailureReason |
FailureReason.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FailureReason[] |
FailureReason.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
org.joda.beans.MetaProperty<FailureReason> |
Failure.Meta.reason()
The meta-property for the
reason property. |
org.joda.beans.MetaProperty<FailureReason> |
FailureItem.Meta.reason()
The meta-property for the
reason property. |
| Modifier and Type | Method and Description |
|---|---|
static <R> Result<R> |
Result.failure(FailureReason reason,
Exception cause)
Creates a failed result caused by an exception with a specified reason.
|
static <R> Result<R> |
Result.failure(FailureReason reason,
Exception cause,
String message,
Object... messageArgs)
Creates a failed result caused by an exception with a specified reason and message.
|
static <R> Result<R> |
Result.failure(FailureReason reason,
String message,
Object... messageArgs)
Creates a failed result specifying the failure reason.
|
static <R> Result<R> |
Result.failure(FailureReason reason,
Throwable cause)
Creates a failed result caused by a throwable with a specified reason.
|
static <R> Result<R> |
Result.failure(FailureReason reason,
Throwable cause,
String message,
Object... messageArgs)
Creates a failed result caused by a throwable with a specified reason and message.
|
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 FailureItem |
FailureItem.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 FailureItem |
FailureItem.of(FailureReason reason,
Throwable cause)
Obtains a failure from a reason and exception.
|
static Failure |
Failure.of(FailureReason reason,
Throwable cause,
String message,
Object... messageArgs)
Obtains a failure from a reason, message and throwable.
|
static FailureItem |
FailureItem.of(FailureReason reason,
Throwable cause,
String message,
Object... messageArgs)
Obtains a failure from a reason, throwable and message.
|
static <R> Result<R> |
Result.ofNullable(R value,
FailureReason reason,
String message,
Object... messageArgs)
Returns a success result containing the value if it is non-null, else returns a failure result
with the specified reason and message.
|
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.