ValidationException (Grails 4.0.6)
Date: 2020-12-19

Package: grails.validation

## [Java] Class ValidationException

- grails.validation.ValidationException

- Thrown when validation fails during a .save().

  Authors:
    Jeff Brown
  Since:
    1.2

- - ### Constructor Summary

    Constructors
    Constructor and description
    `ValidationException (java.lang.String msg, org.springframework.validation.Errors e)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `static java.lang.String` | `formatErrors(org.springframework.validation.Errors errors)`
    `` | `static java.lang.String` | `formatErrors(org.springframework.validation.Errors errors, java.lang.String msg)`
    `` | `org.springframework.validation.Errors` | `getErrors()`
    `` | `java.lang.String` | `getMessage()`

- - ### Constructor Detail

    - #### public ValidationException(java.lang.String msg, org.springframework.validation.Errors e)

  - ### Method Detail

    - #### public static java.lang.String formatErrors(org.springframework.validation.Errors errors)

    - #### public static java.lang.String formatErrors(org.springframework.validation.Errors errors, java.lang.String msg)

    - #### public org.springframework.validation.Errors getErrors()

    - #### public java.lang.String getMessage()