Exception: Phony::FormattingError

Inherits:
ArgumentError
  • Object
show all
Defined in:
lib/phony.rb

Overview

Raised in case Phony can’t format a given number.

Examples:

Phony.format("Fnork!") # Raises a Phony::FormattingError.

Instance Method Summary collapse

Constructor Details

#initializeFormattingError

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