public class PropertyValidationHandlerUtils extends Object
Constructor and Description |
---|
PropertyValidationHandlerUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getExceptionAsString(Exception e)
Converts a Exception to a string
|
static String |
getPropertyInvalidMessage(Property<?> property,
Exception exception)
Builds a message for an invalid
Property . |
static String |
getPropertyIOInvalidMessage(PropertyIO io,
Exception exception)
Builds a message for a invalid
PropertyIO . |
static String |
getPropertyIOValidMessage(PropertyIO io)
Builds a message for a valid
PropertyIO . |
static String |
getPropertyValidMessage(Property<?> property)
Builds a message for a valid
Property . |
public static String getPropertyValidMessage(Property<?> property)
Property
.property
- the validated and valid Property.public static String getPropertyInvalidMessage(Property<?> property, Exception exception)
Property
.property
- the validated and invalid Property.exception
- the exception throw when validating.public static String getPropertyIOValidMessage(PropertyIO io)
PropertyIO
.io
- the validated and valid PropertyIO.public static String getPropertyIOInvalidMessage(PropertyIO io, Exception exception)
PropertyIO
.io
- the validated and invalid PropertyIO.exception
- the exception throw when validating.