Exception: ApiGenerator::Middleware::HttpErrors::BaseError
- Inherits:
-
StandardError
- Object
- StandardError
- ApiGenerator::Middleware::HttpErrors::BaseError
- Defined in:
- lib/api_generator/middleware/http_errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(msg = nil, body = nil) ⇒ BaseError
constructor
A new instance of BaseError.
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 |