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

io.polyapi.plugin.error.validation.NullOrEmptyValueException Maven / Gradle / Ivy

There is a newer version: 0.15.3
Show newest version
package io.polyapi.plugin.error.validation;

/**
 * Exception thrown when an object that should not be empty is null or empty.
 */
public class NullOrEmptyValueException extends ValidationException {

    /**
     * Constructor that indicates the property that is validated.
     *
     * @param validatedProperty The property to validate.
     */
    public NullOrEmptyValueException(String validatedProperty) {
        super(validatedProperty, "Property '%s' is empty when it shouldn't.");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy