ConfigLoadException

class ConfigLoadException(message: String, cause: Throwable? = null) : RuntimeException(source)

Thrown when startup cannot complete — a configuration file or URL cannot be loaded/parsed, or the command-line options fail to parse — and the process was started with exitOnMissingConfig = false (the embedded mode used by Agent.startAsyncAgent).

In standalone mode (exitOnMissingConfig = true) such a failure terminates the process via exitProcess instead. Embedders that host an Agent inside their own JVM should catch this exception so a transient remote-config fetch failure, a malformed config file, or an invalid command-line option does not kill the host application.

Parameters

message

a human-readable description of what failed to load or parse

cause

the underlying failure (e.g. a parse error, FileNotFoundException, or a JCommander ParameterException), if any

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?