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:
Serializable
- Direct Known Subclasses:
ConfigException.BadPath
,ConfigException.BadValue
,ConfigException.BugOrBroken
,ConfigException.Generic
,ConfigException.IO
,ConfigException.Missing
,ConfigException.Parse
,ConfigException.ValidationFailed
,ConfigException.WrongType
All exceptions thrown by the library are subclasses of
ConfigException
.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Some problem with a JavaBean we are trying to initialize.static class
Exception indicating that a path expression was invalid.static class
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.static class
Exception indicating that there's a bug in something (possibly the library itself) or the runtime environment is broken.static class
Exception that doesn't fall into any other category.static class
Exception indicating that there was an IO error.static class
Exception indicates that the setting was never set to anything, not even null.static class
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).static class
Exception indicates that the setting was treated as missing because it was set to null.static class
Exception indicating that there was a parse error.static class
Exception indicating that a substitution did not resolve to anything.static class
Exception indicating thatConfig.checkValid(com.typesafe.config.Config, java.lang.String...)
found validity problems.static class
Information about a problem that occurred inConfig.checkValid(com.typesafe.config.Config, java.lang.String...)
.static class
Exception indicating that the type of a value does not match the type you requested. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ConfigException
(ConfigOrigin origin, String message) protected
ConfigException
(ConfigOrigin origin, String message, Throwable cause) protected
ConfigException
(String message) protected
ConfigException
(String message, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionorigin()
Returns an "origin" (such as a filename and line number) for the exception, or null if none is available.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigException
-
ConfigException
-
ConfigException
-
ConfigException
-
-
Method Details
-
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
-