All Downloads are FREE. Search and download functionalities are using the official Maven repository.

one.xingyi.validation.ValidationException Maven / Gradle / Ivy

package one.xingyi.validation;

import lombok.RequiredArgsConstructor;

import java.text.MessageFormat;
import java.util.Collections;
import java.util.List;

public class ValidationException extends RuntimeException {

    public final List errors;
    public ValidationException(List errors) {
        this(null, errors);
    }
    public ValidationException(String message, List errors) {
        super(message == null ? errors.toString() : message);
        this.errors = Collections.unmodifiableList(errors);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy