Search in sources :

Example 1 with ValidationType

use of io.stackgres.operator.validation.ValidationType in project stackgres by ongres.

the class DbOpsValidator method fail.

default void fail(String message) throws ValidationFailed {
    ValidationType validationType = this.getClass().getAnnotation(ValidationType.class);
    String errorTypeUri = ErrorType.getErrorTypeUri(validationType.value());
    fail(errorTypeUri, message);
}
Also used : ValidationType(io.stackgres.operator.validation.ValidationType)

Example 2 with ValidationType

use of io.stackgres.operator.validation.ValidationType in project stackgres by ongres.

the class ClusterValidator method fail.

default void fail(String message) throws ValidationFailed {
    ValidationType validationType = this.getClass().getAnnotation(ValidationType.class);
    String errorTypeUri = ErrorType.getErrorTypeUri(validationType.value());
    fail(errorTypeUri, message);
}
Also used : ValidationType(io.stackgres.operator.validation.ValidationType)

Example 3 with ValidationType

use of io.stackgres.operator.validation.ValidationType in project stackgres by ongres.

the class DistributedLogsValidator method fail.

default void fail(String message) throws ValidationFailed {
    ValidationType validationType = this.getClass().getAnnotation(ValidationType.class);
    String errorTypeUri = ErrorType.getErrorTypeUri(validationType.value());
    fail(errorTypeUri, message);
}
Also used : ValidationType(io.stackgres.operator.validation.ValidationType)

Aggregations

ValidationType (io.stackgres.operator.validation.ValidationType)3