class SwedishPIN::ParseError
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.
Attributes
input[R]
The input string that caused the error.
@example
error.input # => "112233@4455"
Public Class Methods
new(message, input)
click to toggle source
Create a new instance of this error.
@param [String] message The error message. @param [String] input The input string that could not be parsed.
Calls superclass method
# File lib/swedish_pin/errors.rb, line 20 def initialize(message, input) super(message) @input = input end