Package com.enonic.xp.content

## Class ValidationError

- java.lang.Object
- - com.enonic.xp.content.ValidationError

- Direct Known Subclasses:
    `AttachmentValidationError`, `DataValidationError`

      public class ValidationError
      extends Object

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `ValidationError.Builder` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ValidationError.Builder` | `attachmentError​(ValidationErrorCode errorCode, BinaryReference attachment)` |
    `static ValidationError.Builder` | `dataError​(ValidationErrorCode errorCode, PropertyPath propertyPath)` |
    `boolean` | `equals​(Object o)` |
    `static ValidationError.Builder` | `generalError​(ValidationErrorCode errorCode)` |
    `List<Object>` | `getArgs()` |
    `ValidationErrorCode` | `getErrorCode()` |
    `String` | `getI18n()` |
    `String` | `getMessage()` |
    `int` | `hashCode()` |

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getMessage

          public String getMessage()

    - #### getErrorCode

          public ValidationErrorCode getErrorCode()

    - #### getI18n

          public String getI18n()

    - #### getArgs

          public List<Object> getArgs()

    - #### generalError

          public static ValidationError.Builder generalError​(ValidationErrorCode errorCode)

    - #### attachmentError

          public static ValidationError.Builder attachmentError​(ValidationErrorCode errorCode,
                                                                BinaryReference attachment)

    - #### dataError

          public static ValidationError.Builder dataError​(ValidationErrorCode errorCode,
                                                          PropertyPath propertyPath)

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`