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<?> violation) Constructs a new instance with bean validation violation.Constructs a new instance withBeanValidationErrorInfoBean. -
Method Summary
Modifier and TypeMethodDescriptionGets BeanValidationErrorInfoBean.toString()Outputs a string for logs.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
BeanValidationAppException
public BeanValidationAppException(@RequireNonnull jakarta.validation.ConstraintViolation<?> violation) Constructs a new instance with bean validation violation.- Parameters:
violation- violation result
-
BeanValidationAppException
Constructs a new instance withBeanValidationErrorInfoBean.This makes possible to treat exceptions wchich are not created from
ConstraintViolationasBeanValidationAppException.- Parameters:
bean- BeanValidationErrorInfoBean
-
-
Method Details