Module io.inverno.mod.configuration
Package io.inverno.mod.configuration
Class ConfigurationSourceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.inverno.mod.configuration.ConfigurationSourceException
- All Implemented Interfaces:
Serializable
Thrown to indicate that an error occured in a configuration source.
- Since:
- 1.0
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
ConstructorDescriptionConfigurationSourceException
(ConfigurationSource<?, ?, ?> source) Creates a configuration source exception for the specified source.ConfigurationSourceException
(ConfigurationSource<?, ?, ?> source, String message) Creates a configuration source exception for the specified source and with the specified message.ConfigurationSourceException
(ConfigurationSource<?, ?, ?> source, String message, Throwable cause) Creates a configuration source exception for the specified source and with the specified message and cause.ConfigurationSourceException
(ConfigurationSource<?, ?, ?> source, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a configuration source exception for the specified source and with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.ConfigurationSourceException
(ConfigurationSource<?, ?, ?> source, Throwable cause) Creates a configuration source exception for the specified source and with the specified cause. -
Method Summary
Modifier and TypeMethodDescriptionConfigurationSource
<?, ?, ?> Returns the configuration source at the origin of the error.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigurationSourceException
Creates a configuration source exception for the specified source.
- Parameters:
source
- the configuration source
-
ConfigurationSourceException
Creates a configuration source exception for the specified source and with the specified message.
- Parameters:
source
- the configuration sourcemessage
- the message
-
ConfigurationSourceException
Creates a configuration source exception for the specified source and with the specified cause.
- Parameters:
source
- the configuration sourcecause
- the cause
-
ConfigurationSourceException
public ConfigurationSourceException(ConfigurationSource<?, ?, ?> source, String message, Throwable cause) Creates a configuration source exception for the specified source and with the specified message and cause.
- Parameters:
source
- the configuration sourcemessage
- the messagecause
- the cause
-
ConfigurationSourceException
public ConfigurationSourceException(ConfigurationSource<?, ?, ?> source, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) Creates a configuration source exception for the specified source and with the specified message, cause, suppression enabled or disabled and writable stack trace enabled or disabled.
- Parameters:
source
- the configuration sourcemessage
- the messagecause
- the causeenableSuppression
- true to enable suppression, false otherwisewritableStackTrace
- true to make the stack trace writable, false otherwise
-
-
Method Details
-
getSource
Returns the configuration source at the origin of the error.
- Returns:
- the configuration source
-