Exception: Happi::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/happi/error.rb

Direct Known Subclasses

ClientError, ServerError

Defined Under Namespace

Modules: ServiceableErrors Classes: BadGateway, BadRequest, ClientError, Forbidden, GatewayTimeout, InternalServerError, NotAcceptable, NotFound, RequestTimeout, ServerError, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#responseObject (readonly)

Returns the value of attribute response.



2
3
4
# File 'lib/happi/error.rb', line 2

def response
  @response
end