Exception: EnvValidator::FormatError
- Inherits:
-
ValidationError
- Object
- StandardError
- Error
- ValidationError
- EnvValidator::FormatError
- Defined in:
- lib/env_validator/error.rb
Instance Attribute Summary
Attributes inherited from ValidationError
Instance Method Summary collapse
-
#initialize(variable_name, rule, pattern) ⇒ FormatError
constructor
A new instance of FormatError.
Constructor Details
#initialize(variable_name, rule, pattern) ⇒ FormatError
Returns a new instance of FormatError.
70 71 72 73 |
# File 'lib/env_validator/error.rb', line 70 def initialize(variable_name, rule, pattern) = "#{variable_name} format is invalid. Expected format: #{pattern}" super(variable_name, rule, ) end |