Exception: Phony::FormattingError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- Phony::FormattingError
- Defined in:
- lib/phony.rb
Overview
Raised in case Phony can’t format a given number.
Instance Method Summary collapse
-
#initialize ⇒ FormattingError
constructor
A new instance of FormattingError.
Constructor Details
#initialize ⇒ FormattingError
Returns a new instance of FormattingError.
106 107 108 |
# File 'lib/phony.rb', line 106 def initialize super(%(Phony could not format the given number. Is it a phone number?)) end |