Exception: ConstConf::Errors::SettingCheckFailed

Inherits:
ConfigurationError show all
Defined in:
lib/const_conf/errors.rb

Overview

A custom exception class raised when a configuration setting’s confirmation check fails.

This exception is used to signal that a configuration setting has failed its confirmation check, which is a custom validation logic defined for the setting. It inherits from ConfigurationError and is part of the error handling mechanism within the ConstConf system to ensure settings meet specific criteria beyond basic required and default value checks.

Examples:

Handling a setting check failure

begin
  # Code that may raise SettingCheckFailed
rescue ConstConf::SettingCheckFailed => e
  # Handle the failed validation check appropriately
end