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.


107
108
109
# File 'lib/phony.rb', line 107

def initialize
  super %Q{Phony could not format the given number. Is it a phone number?}
end