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.



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

def initialize
  super(%(Phony could not normalize the given number. Is it a phone number?))
end