NestedFailure

class NestedFailure(val key: String, val errors: List<ConfigError>) : ConfigError(source)

Groups the errors of a nested config under key. Generated loaders never produce it: they report a nested spec's errors directly, with the nested prefix in each key. It is available for hand-written loaders.

Constructors

Link copied to clipboard
constructor(key: String, errors: List<ConfigError>)

Properties

Link copied to clipboard

The errors inside the nested config.

Link copied to clipboard
open override val key: String

The key that failed, as looked up in the source that supplied the value. For a missing key it is the SCREAMING_SNAKE form (or the @Key name). For a failed init check it is the spec's prefix, such as DATABASE for a nested spec, or the class name when there is none.

Link copied to clipboard
open override val message: String

A readable description of the problem, used in ConfigException's message.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String