Exception: SwedishPIN::ParseError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- SwedishPIN::ParseError
- Defined in:
- lib/swedish_pin/errors.rb
Overview
Error that represents a problem that occurred while parsing a Personnummer.
You can inspect both the #input attribute and check the subclass to build more helpful error messages for your users.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
The input string that caused the error.
Instance Method Summary collapse
-
#initialize(message, input) ⇒ ParseError
constructor
Create a new instance of this error.
Constructor Details
#initialize(message, input) ⇒ ParseError
Create a new instance of this error.
20 21 22 23 |
# File 'lib/swedish_pin/errors.rb', line 20 def initialize(, input) super() @input = input end |
Instance Attribute Details
#input ⇒ Object (readonly)
The input string that caused the error.
14 15 16 |
# File 'lib/swedish_pin/errors.rb', line 14 def input @input end |