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

com.neko233.toolchain.validator.ValidateContext Maven / Gradle / Ivy

package com.neko233.toolchain.validator;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.function.Consumer;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ValidateContext {

    private boolean isOk;
    private String reason;
    private Throwable throwable;

    public void consumeException(Consumer consumer) {
        consumer.accept(throwable);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy