ConfigException

@SerialVersionUID(1L) object ConfigException
Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

@SerialVersionUID(1L)
class BadBean(message: String, cause: Throwable) extends BugOrBroken

Some problem with a JavaBean we are trying to initialize.

Some problem with a JavaBean we are trying to initialize.

Since

1.3.0

@SerialVersionUID(1L)
class BadPath(origin: ConfigOrigin, message: String, cause: Throwable) extends ConfigException

Exception indicating that a path expression was invalid. Try putting double quotes around path elements that contain "special" characters.

Exception indicating that a path expression was invalid. Try putting double quotes around path elements that contain "special" characters.

@SerialVersionUID(1L)
class BadValue(origin: ConfigOrigin, message: String, cause: Throwable) extends ConfigException

Exception indicating that a value was messed up, for example you may have asked for a duration and the value can't be sensibly parsed as a duration.

Exception indicating that a value was messed up, for example you may have asked for a duration and the value can't be sensibly parsed as a duration.

@SerialVersionUID(1L)
class BugOrBroken(message: String, cause: Throwable) extends ConfigException

Exception indicating that there's a bug in something (possibly the library itself) or the runtime environment is broken. This exception should never be handled; instead, something should be fixed to keep the exception from occurring. This exception can be thrown by any method in the library.

Exception indicating that there's a bug in something (possibly the library itself) or the runtime environment is broken. This exception should never be handled; instead, something should be fixed to keep the exception from occurring. This exception can be thrown by any method in the library.

@SerialVersionUID(1L)
class Generic(message: String, cause: Throwable) extends ConfigException

Exception that doesn't fall into any other category.

Exception that doesn't fall into any other category.

@SerialVersionUID(1L)
class IO(origin: ConfigOrigin, message: String, cause: Throwable) extends ConfigException

Exception indicating that there was an IO error.

Exception indicating that there was an IO error.

@SerialVersionUID(1L)
object Missing

Exception indicates that the setting was never set to anything, not even null.

Exception indicates that the setting was never set to anything, not even null.

Companion
class
@SerialVersionUID(1L)
class Missing(origin: ConfigOrigin, message: String, cause: Throwable) extends ConfigException
Companion
object
@SerialVersionUID(1L)
class NotResolved(message: String, cause: Throwable) extends BugOrBroken

Exception indicating that you tried to use a function that requires substitutions to be resolved, but substitutions have not been resolved (that is, resolve() was not called). This is always a bug in either application code or the library; it's wrong to write a handler for this exception because you should be able to fix the code to avoid it by adding calls to resolve().

Exception indicating that you tried to use a function that requires substitutions to be resolved, but substitutions have not been resolved (that is, resolve() was not called). This is always a bug in either application code or the library; it's wrong to write a handler for this exception because you should be able to fix the code to avoid it by adding calls to resolve().

@SerialVersionUID(1L)
object Null

Exception indicates that the setting was treated as missing because it was set to null.

Exception indicates that the setting was treated as missing because it was set to null.

Companion
class
@SerialVersionUID(1L)
class Null(origin: ConfigOrigin, path: String, expected: String, cause: Throwable) extends Missing
Companion
object
@SerialVersionUID(1L)
class Parse(origin: ConfigOrigin, message: String, cause: Throwable) extends ConfigException

Exception indicating that there was a parse error.

Exception indicating that there was a parse error.

@SerialVersionUID(1L)
class UnresolvedSubstitution(origin: ConfigOrigin, detail: String, cause: Throwable) extends Parse

Exception indicating that a substitution did not resolve to anything. Thrown by resolve().

Exception indicating that a substitution did not resolve to anything. Thrown by resolve().

@SerialVersionUID(1L)

Exception indicating that Config#checkValid found validity problems. The problems are available via the ValidationFailed#problems method. The getMessage of this exception is a potentially very long string listing all the problems found.

Exception indicating that Config#checkValid found validity problems. The problems are available via the ValidationFailed#problems method. The getMessage of this exception is a potentially very long string listing all the problems found.

Companion
class
@SerialVersionUID(1L)
class ValidationFailed(val problems: Iterable[ValidationProblem]) extends ConfigException
Companion
object
@SerialVersionUID(1L)
class ValidationProblem(val path: String, val origin: ConfigOrigin, val problem: String) extends Serializable

Information about a problem that occurred in [[Config#checkValid]]. A [[ConfigException.ValidationFailed]] exception thrown from checkValid includes a list of problems encountered.

Information about a problem that occurred in [[Config#checkValid]]. A [[ConfigException.ValidationFailed]] exception thrown from checkValid includes a list of problems encountered.

@SerialVersionUID(1L)
class WrongType(origin: ConfigOrigin, message: String, cause: Throwable) extends ConfigException

Exception indicating that the type of a value does not match the type you requested.

Exception indicating that the type of a value does not match the type you requested.