Exception: Spellr::InvalidByteSequence
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Spellr::InvalidByteSequence
- Defined in:
- lib/spellr.rb
Constant Summary collapse
- RE =
/invalid byte sequence/.freeze
Class Method Summary collapse
Class Method Details
.===(error) ⇒ Object
21 22 23 |
# File 'lib/spellr.rb', line 21 def self.===(error) error.is_a?(ArgumentError) && error..match?(RE) end |