Exception: UnitedStates::NoDesignationFoundError
- Inherits:
-
StandardError
- Object
- StandardError
- UnitedStates::NoDesignationFoundError
- 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
-
#initialize(message = DEFAULT_MESSAGE) ⇒ NoDesignationFoundError
constructor
A new instance of NoDesignationFoundError.
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( = DEFAULT_MESSAGE) super() end |