Class InvalidConfigurationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.loomcache.common.exception.LoomException
com.loomcache.common.exception.InvalidConfigurationException
- All Implemented Interfaces:
Serializable
Thrown when a configuration value is invalid or missing.
This exception indicates a problem with the LoomCache configuration. This can occur when reading configuration files, environment variables, or programmatic configuration.
Common causes include: - Missing required configuration - Invalid configuration values (out of range, wrong format) - Conflicting configuration settings - Unrecognized configuration keys
This is typically a non-recoverable error that should be addressed by the operator before starting the service.
- Since:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidConfigurationException(String message) Creates a new InvalidConfigurationException with message.InvalidConfigurationException(String message, @Nullable String configKey, @Nullable String configValue, @Nullable String reason) Creates a new InvalidConfigurationException with detailed configuration information.InvalidConfigurationException(String message, Throwable cause) Creates a new InvalidConfigurationException with message and cause. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidConfigurationException
Creates a new InvalidConfigurationException with message.- Parameters:
message- the error message (must not be null)
-
InvalidConfigurationException
-
InvalidConfigurationException
public InvalidConfigurationException(String message, @Nullable String configKey, @Nullable String configValue, @Nullable String reason) Creates a new InvalidConfigurationException with detailed configuration information.- Parameters:
message- the error message (must not be null)configKey- the configuration key that is invalid (may be null)configValue- the invalid configuration value (may be null)reason- the reason why the configuration is invalid (may be null)
-