Exception: Pione::Location::NotLocal

Inherits:
LocationError show all
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

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

#messageObject



45
46
47
# File 'lib/pione/location/location-exception.rb', line 45

def message
  "the location \"%s\" should local location" % @location.address
end