Exception: ApiGenerator::Middleware::HttpErrors::BaseError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/api_generator/middleware/http_errors.rb

Direct Known Subclasses

ClientError, ServerError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil, body = nil) ⇒ BaseError

Returns a new instance of BaseError.



9
10
11
12
# File 'lib/api_generator/middleware/http_errors.rb', line 9

def initialize(msg = nil, body = nil)
  @body = body if body
  super(msg)
end

Instance Attribute Details

#body ⇒ Object (readonly)

Returns the value of attribute body.



7
8
9
# File 'lib/api_generator/middleware/http_errors.rb', line 7

def body
  @body
end