Exception: Israeli::InvalidFormatError
- Defined in:
- lib/israeli/errors.rb
Overview
Raised when input format is invalid for the requested validation type.
Direct Known Subclasses
InvalidBankAccountError, InvalidIdError, InvalidPhoneError, InvalidPostalCodeError
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
Instance Method Summary collapse
-
#initialize(message = nil, reason: nil) ⇒ InvalidFormatError
constructor
A new instance of InvalidFormatError.
Constructor Details
#initialize(message = nil, reason: nil) ⇒ InvalidFormatError
Returns a new instance of InvalidFormatError.
26 27 28 29 |
# File 'lib/israeli/errors.rb', line 26 def initialize( = nil, reason: nil) @reason = reason super() end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
22 23 24 |
# File 'lib/israeli/errors.rb', line 22 def reason @reason end |