Exception: EnvValidator::FormatError

Inherits:
ValidationError show all
Defined in:
lib/env_validator/error.rb

Instance Attribute Summary

Attributes inherited from ValidationError

#rule, #variable_name

Instance Method Summary collapse

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)
  message = "#{variable_name} format is invalid. Expected format: #{pattern}"
  super(variable_name, rule, message)
end