Exception: Crockford32::InvalidCharacterError
- Inherits:
-
DecodeError
- Object
- StandardError
- Error
- DecodeError
- Crockford32::InvalidCharacterError
- Defined in:
- lib/crockford32/errors.rb
Overview
An error representing a decode operation finding an illegal symbol within a provided value.
Instance Method Summary collapse
-
#initialize(string, index) ⇒ InvalidCharacterError
constructor
A new instance of InvalidCharacterError.
Constructor Details
#initialize(string, index) ⇒ InvalidCharacterError
Returns a new instance of InvalidCharacterError.
37 38 39 |
# File 'lib/crockford32/errors.rb', line 37 def initialize(string, index) super("Invalid character '#{string[index]}' in '#{string}' at index #{index}") end |