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 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 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.
|
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.
|