Exception: Happi::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Happi::Error
- Defined in:
- lib/happi/error.rb
Direct Known Subclasses
Defined Under Namespace
Modules: ServiceableErrors Classes: BadGateway, BadRequest, ClientError, Forbidden, GatewayTimeout, InternalServerError, NotAcceptable, NotFound, RequestTimeout, ServerError, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(msg = nil, response = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(msg = nil, response = nil) ⇒ Error
Returns a new instance of Error.
4 5 6 7 |
# File 'lib/happi/error.rb', line 4 def initialize(msg = nil, response = nil) super(msg) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
2 3 4 |
# File 'lib/happi/error.rb', line 2 def response @response end |