Exception: NumerousError
- Inherits:
-
StandardError
- Object
- StandardError
- NumerousError
- Defined in:
- lib/numerousapp.rb
Overview
NumerousError
Exceptions indicate errors from the server
Direct Known Subclasses
NumerousAuthError, NumerousMetricConflictError, NumerousNetworkError
Instance Attribute Summary collapse
-
#code ⇒ Object
HTTP error code (e.g., 404).
-
#details ⇒ Object
hash containing more ad-hoc information, most usefully :id which is the URL that was used in the request to the server.
Instance Method Summary collapse
-
#initialize(msg, code, details) ⇒ NumerousError
constructor
initialize a NumerousError.
Constructor Details
#initialize(msg, code, details) ⇒ NumerousError
initialize a NumerousError
61 62 63 64 65 |
# File 'lib/numerousapp.rb', line 61 def initialize(msg, code, details) super(msg) @code = code @details = details end |
Instance Attribute Details
#code ⇒ Object
HTTP error code (e.g., 404)
61 62 63 64 65 |
# File 'lib/numerousapp.rb', line 61 def initialize(msg, code, details) super(msg) @code = code @details = details end |
#details ⇒ Object
hash containing more ad-hoc information, most usefully :id which is the URL that was used in the request to the server
61 62 63 64 65 |
# File 'lib/numerousapp.rb', line 61 def initialize(msg, code, details) super(msg) @code = code @details = details end |