Class BeanValidationAppException

All Implemented Interfaces:
Serializable

public class BeanValidationAppException extends SingleAppException
Holds a bean validations violation.
See Also:
  • 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

      public Map<String,Object> getAnnotationAttributes()
      Gets annotationAttributes.
      Returns:
      annotationAttributes
    • getAnnotation

      @Nonnull public String getAnnotation()
      Gets annotation.
      Returns:
      annotation
    • getMessage

      @Nonnull public String getMessage()
      Gets message.
      Overrides:
      getMessage in class Throwable
      Returns:
      message
    • getMessageTemplate

      @Nonnull public String getMessageTemplate()
      Gets messageTemplate.
      Returns:
      messageTemplate
    • getRootClassName

      @Nonnull public String getRootClassName()
      Gets rootClassName.
      Returns:
      rootClassName
    • getLeafClassName

      @Nonnull public String getLeafClassName()
      Gets leafClassName.
      Returns:
      leafClassName
    • getPropertyPath

      @Nonnull public String getPropertyPath()
      Gets propertyPath.
      Returns:
      propertyPath
    • getInvalidValue

      @Nonnull public String getInvalidValue()
      Gets invalidValue.
      Returns:
      invalidValue
    • getInstance

      @Nonnull public Object getInstance()
      Gets instance.
      Returns:
      instance
    • getMessageId

      @Nonnull public String getMessageId()
      Gets annotation.
      Returns:
      annotation
    • toString

      @Nonnull public String toString()
      Outputs a string for logs.
      Overrides:
      toString in class Throwable