Exception: Esgob::ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- Esgob::ServerError
- Defined in:
- lib/esgob.rb
Overview
Exception raised when the Esgob API returns an error
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Get the error code number returned by Esgob.
Instance Method Summary collapse
-
#initialize(message, code = nil) ⇒ ServerError
constructor
A new instance of ServerError.
Constructor Details
#initialize(message, code = nil) ⇒ ServerError
Returns a new instance of ServerError.
12 13 14 15 |
# File 'lib/esgob.rb', line 12 def initialize(, code = nil) super @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Get the error code number returned by Esgob
10 11 12 |
# File 'lib/esgob.rb', line 10 def code @code end |