io.sphere.sdk.client.ValidationE Maven / Gradle / Ivy
package io.sphere.sdk.client;
import io.sphere.sdk.utils.Validation;
import net.jcip.annotations.Immutable;
/** Validation with the error type being {@link io.sphere.sdk.client.SphereClientException}. */
@Immutable
public final class ValidationE extends Validation {
//TODO make private
public ValidationE(T value, SphereClientException exception) {
super(value, exception);
}
/** Creates a new erroneous result. */
public static ValidationE error(SphereClientException exception) {
return new ValidationE<>(null, exception);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy