Exception: OpenStreetMap::Error
- Inherits:
-
StandardError
- Object
- StandardError
- OpenStreetMap::Error
- Defined in:
- lib/open_street_map/errors.rb
Overview
Unspecified OSM API error.
Direct Known Subclasses
BadRequest, Conflict, Gone, MethodNotAllowed, NotFound, NotImplemented, Precondition, ServerError, Unauthorized, Unavailable
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(data) ⇒ Error
Returns a new instance of Error.
6 7 8 9 |
# File 'lib/open_street_map/errors.rb', line 6 def initialize(data) @data = data super end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/open_street_map/errors.rb', line 4 def data @data end |