> For the complete documentation index, see [llms.txt](https://shedaniel.gitbook.io/cloth-config/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://shedaniel.gitbook.io/cloth-config/auto-config/post-validation.md).

# Post-Validation

Implement `validatePostLoad()` in your config class to correct and validate your fields after deserialization. Prefer correction over validation, but throw a `ValidationException` if the config can not be corrected. If a config fails to validate (`ValidationException` is thrown), the default config will be loaded but not saved and an error will be logged.
