Package com.typesafe.config
Class ConfigException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.typesafe.config.ConfigException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ConfigException.BadPath,ConfigException.BadValue,ConfigException.BugOrBroken,ConfigException.Generic,ConfigException.IO,ConfigException.Missing,ConfigException.Parse,ConfigException.ValidationFailed,ConfigException.WrongType
public abstract class ConfigException extends java.lang.RuntimeException implements java.io.Serializable
All exceptions thrown by the library are subclasses ofConfigException.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConfigException.BadBeanSome problem with a JavaBean we are trying to initialize.static classConfigException.BadPathException indicating that a path expression was invalid.static classConfigException.BadValueException 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.static classConfigException.BugOrBrokenException indicating that there's a bug in something (possibly the library itself) or the runtime environment is broken.static classConfigException.GenericException that doesn't fall into any other category.static classConfigException.IOException indicating that there was an IO error.static classConfigException.MissingException indicates that the setting was never set to anything, not even null.static classConfigException.NotResolvedException 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).static classConfigException.NullException indicates that the setting was treated as missing because it was set to null.static classConfigException.ParseException indicating that there was a parse error.static classConfigException.UnresolvedSubstitutionException indicating that a substitution did not resolve to anything.static classConfigException.ValidationFailedException indicating thatConfig.checkValid(com.typesafe.config.Config, java.lang.String...)found validity problems.static classConfigException.ValidationProblemInformation about a problem that occurred inConfig.checkValid(com.typesafe.config.Config, java.lang.String...).static classConfigException.WrongTypeException indicating that the type of a value does not match the type you requested.
-
Constructor Summary
Constructors Modifier Constructor Description protectedConfigException(ConfigOrigin origin, java.lang.String message)protectedConfigException(ConfigOrigin origin, java.lang.String message, java.lang.Throwable cause)protectedConfigException(java.lang.String message)protectedConfigException(java.lang.String message, java.lang.Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigOriginorigin()Returns an "origin" (such as a filename and line number) for the exception, or null if none is available.
-
-
-
Constructor Detail
-
ConfigException
protected ConfigException(ConfigOrigin origin, java.lang.String message, java.lang.Throwable cause)
-
ConfigException
protected ConfigException(ConfigOrigin origin, java.lang.String message)
-
ConfigException
protected ConfigException(java.lang.String message, java.lang.Throwable cause)
-
ConfigException
protected ConfigException(java.lang.String message)
-
-
Method Detail
-
origin
public origin()
Returns an "origin" (such as a filename and line number) for the exception, or null if none is available. If there's no sensible origin for a given exception, or the kind of exception doesn't meaningfully relate to a particular origin file, this returns null. Never assume this will return non-null, it can always return null.- Returns:
- origin of the problem, or null if unknown/inapplicable
-
-