T - return type of the Metadata resolving operation.public final class MetadataResult<T> extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> MetadataResult<T> |
failure(List<MetadataFailure> failures) |
static <T> MetadataResult<T> |
failure(MetadataFailure... failures) |
T |
get() |
List<MetadataFailure> |
getFailures()
If
this#isSuccess is false, then a MetadataFailure instance is provided in order to describe the error that
occurred during the invocation. |
boolean |
isSuccess() |
static <T> MetadataResult<T> |
success(T payload) |
public static <T> MetadataResult<T> success(T payload)
public static <T> MetadataResult<T> failure(MetadataFailure... failures)
public static <T> MetadataResult<T> failure(List<MetadataFailure> failures)
public T get()
public boolean isSuccess()
public List<MetadataFailure> getFailures()
this#isSuccess is false, then a MetadataFailure instance is provided in order to describe the error that
occurred during the invocation.List of MetadataFailures describing the errors that occurred during the invocation if at least one
occurred.Copyright © 2025 MuleSoft, Inc.. All rights reserved.