Exception: EnvValidator::ValidationError
- Defined in:
- lib/env_validator/error.rb
Direct Known Subclasses
ConstraintError, FormatError, MissingVariableError, TypeError
Instance Attribute Summary collapse
-
#rule ⇒ Object
readonly
Returns the value of attribute rule.
-
#variable_name ⇒ Object
readonly
Returns the value of attribute variable_name.
Instance Method Summary collapse
-
#initialize(variable_name, rule, message) ⇒ ValidationError
constructor
A new instance of ValidationError.
Constructor Details
#initialize(variable_name, rule, message) ⇒ ValidationError
Returns a new instance of ValidationError.
9 10 11 12 13 |
# File 'lib/env_validator/error.rb', line 9 def initialize(variable_name, rule, ) @variable_name = variable_name @rule = rule super() end |
Instance Attribute Details
#rule ⇒ Object (readonly)
Returns the value of attribute rule.
7 8 9 |
# File 'lib/env_validator/error.rb', line 7 def rule @rule end |
#variable_name ⇒ Object (readonly)
Returns the value of attribute variable_name.
7 8 9 |
# File 'lib/env_validator/error.rb', line 7 def variable_name @variable_name end |