Exception: Phony::NormalizationError

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

Overview

Raised in case Phony can't normalize a given number.

Examples:

Phony.normalize("Fnork!") # Raises a Phony::NormalizationError.

Instance Method Summary collapse

Constructor Details

#initializeNormalizationError

Returns a new instance of NormalizationError.


85
86
87
# File 'lib/phony.rb', line 85

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