Exception: Pione::Location::NotLocal
- Inherits:
-
LocationError
- Object
- StandardError
- LocationError
- Pione::Location::NotLocal
- Defined in:
- lib/pione/location/location-exception.rb
Overview
NotLocal is raised when local location is expected but it is other type location.
Instance Method Summary collapse
-
#initialize(location) ⇒ NotLocal
constructor
A new instance of NotLocal.
- #message ⇒ Object
Constructor Details
#initialize(location) ⇒ NotLocal
Returns a new instance of NotLocal.
41 42 43 |
# File 'lib/pione/location/location-exception.rb', line 41 def initialize(location) @location = location end |
Instance Method Details
#message ⇒ Object
45 46 47 |
# File 'lib/pione/location/location-exception.rb', line 45 def "the location \"%s\" should local location" % @location.address end |