Top Description Inners Fields Constructors Methods
com.typesafe.config

public abstract Class ConfigException

extends RuntimeException
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
com.typesafe.config.ConfigException.WrongType, com.typesafe.config.ConfigException.Missing, com.typesafe.config.ConfigException.BadValue, com.typesafe.config.ConfigException.BadPath, com.typesafe.config.ConfigException.BugOrBroken, com.typesafe.config.ConfigException.IO, com.typesafe.config.ConfigException.Parse, com.typesafe.config.ConfigException.ValidationFailed, com.typesafe.config.ConfigException.Generic
Imports
java.io.IOException, .Serializable, java.lang.reflect.Field, com.typesafe.config.impl.ConfigImplUtil

All exceptions thrown by the library are subclasses of ConfigException.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
ConfigException.BadBean

Some problem with a JavaBean we are trying to initialize.

public static class
ConfigException.BadPath

Exception indicating that a path expression was invalid.

public static class
ConfigException.BadValue

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.

public static class
ConfigException.BugOrBroken

Exception indicating that there's a bug in something (possibly the library itself) or the runtime environment is broken.

public static class
ConfigException.Generic

Exception that doesn't fall into any other category.

public static class
ConfigException.IO

Exception indicating that there was an IO error.

public static class
ConfigException.Missing

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

public static class
ConfigException.NotResolved

Exception indicating that you tried to use a function that requires substitutions to be resolved, but substitutions have not been resolved (that is, Config#resolve was not called).

public static class
ConfigException.Null

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

public static class
ConfigException.Parse

Exception indicating that there was a parse error.

public static class
ConfigException.UnresolvedSubstitution

Exception indicating that a substitution did not resolve to anything.

public static class
ConfigException.ValidationFailed

Exception indicating that Config#checkValid found validity problems.

public static class
ConfigException.ValidationProblem

Information about a problem that occurred in Config#checkValid.

public static class
ConfigException.WrongType

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

Field Summary

Modifier and TypeField and Description
private final transient ConfigOrigin
private static final long

Constructor Summary

AccessConstructor and Description
protected
ConfigException(ConfigOrigin origin, String message, Throwable cause)

protected
protected
protected

Method Summary

Modifier and TypeMethod and Description
public ConfigOrigin

Returns:

origin of the problem, or null if unknown/inapplicable
origin
()

Returns an "origin" (such as a filename and line number) for the exception, or null if none is available.

private void
readObject(ObjectInputStream
the ObjectInputStream from which data is read
in
)

Hides java.lang.Throwable.readObject.

Reads a Throwable from a stream, enforcing well-formedness constraints on fields.

private static <T> void
setOriginField(T hasOriginField, Class<T> clazz, ConfigOrigin origin)

private void
writeObject(ObjectOutputStream
the ObjectOutputStream to which data is written
out
)

Hides java.lang.Throwable.writeObject.

Write a Throwable object to a stream.