ConfigError
Why a key failed to load. The subclasses are plain classes rather than data classes, so fields can be added later without breaking callers; they still compare by value.
Inheritors
Types
Link copied to clipboard
class ConversionFailed(val key: String, val rawValue: String, val targetType: String, val cause: String) : ConfigError
The value for key could not be converted to the field's type.
Link copied to clipboard
No source had a value for key, and the field has no default and is not nullable.
Link copied to clipboard
Link copied to clipboard
A value converted fine but broke a validation rule, or the config class's init block rejected the loaded values. rawValue is null in the second case and *** for secrets.
Properties
Link copied to clipboard
Link copied to clipboard
A readable description of the problem, used in ConfigException's message.