Exception: UnitedStates::NoDesignationFoundError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/united_states.rb

Overview

Thrown when someone attempts to search for a state with the wrong name or postal code.

Constant Summary collapse

DEFAULT_MESSAGE =
'No State was found.'.freeze

Instance Method Summary collapse

Constructor Details

#initialize(message = DEFAULT_MESSAGE) ⇒ NoDesignationFoundError

Returns a new instance of NoDesignationFoundError.



15
16
17
# File 'lib/united_states.rb', line 15

def initialize(message = DEFAULT_MESSAGE)
  super(message)
end