ConfigException

Thrown by ConfigResult.getOrThrow and the generated Konstant.init<Spec> functions. The message lists every error, one per line:

Configuration loading failed with 2 error(s):
- Required configuration key 'DATABASE_URL' is missing
- Failed to convert 'server.port' value 'abc' to Int: ...

Constructors

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

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard

The errors that caused the failure.

Link copied to clipboard
expect open val message: String?