Module jp.ecuacion.lib.core
Class BeanValidationAppException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jp.ecuacion.lib.core.exception.checked.AppException
jp.ecuacion.lib.core.exception.checked.SingleAppException
jp.ecuacion.lib.core.exception.checked.BeanValidationAppException
- All Implemented Interfaces:
Serializable
Holds a bean validations violation.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBeanValidationAppException(jakarta.validation.ConstraintViolation<T> violation) Constructs a new instance with bean validation violation. -
Method Summary
Modifier and TypeMethodDescriptionGets annotation.Gets annotationAttributes.Gets instance.Gets invalidValue.Gets leafClassName.Gets message.Gets annotation.Gets messageTemplate.Gets propertyPath.Gets rootClassName.toString()Outputs a string for logs.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
BeanValidationAppException
public BeanValidationAppException(@Nonnull jakarta.validation.ConstraintViolation<T> violation) Constructs a new instance with bean validation violation.- Type Parameters:
T- The class applying validation.- Parameters:
violation- violation result
-
-
Method Details
-
getAnnotationAttributes
Gets annotationAttributes.- Returns:
- annotationAttributes
-
getAnnotation
Gets annotation.- Returns:
- annotation
-
getMessage
Gets message.- Overrides:
getMessagein classThrowable- Returns:
- message
-
getMessageTemplate
Gets messageTemplate.- Returns:
- messageTemplate
-
getRootClassName
Gets rootClassName.- Returns:
- rootClassName
-
getLeafClassName
Gets leafClassName.- Returns:
- leafClassName
-
getPropertyPath
Gets propertyPath.- Returns:
- propertyPath
-
getInvalidValue
Gets invalidValue.- Returns:
- invalidValue
-
getInstance
Gets instance.- Returns:
- instance
-
getMessageId
Gets annotation.- Returns:
- annotation
-
toString
Outputs a string for logs.
-