io.polyapi.plugin.error.validation.NullOrEmptyValueException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polyapi-maven-plugin Show documentation
Show all versions of polyapi-maven-plugin Show documentation
Maven plugin to run handle Poly API functions.
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.");
}
}