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.

Last updated