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

ru.tinkoff.kora.validation.common.Violation Maven / Gradle / Ivy

There is a newer version: 1.1.9
Show newest version
package ru.tinkoff.kora.validation.common;

import ru.tinkoff.kora.validation.common.ValidationContext.Path;

import jakarta.annotation.Nonnull;

/**
 * Indicates validation failure
 */
public interface Violation {

    /**
     * @return failure message
     */
    @Nonnull
    String message();

    /**
     * @return path for value where failure occurred
     */
    @Nonnull
    Path path();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy