Exception: Lambda::MicroVMs::EndpointError
- Defined in:
- lib/lambda/microvms/error.rb
Overview
Raised when a MicroVM endpoint call fails with a non-success response.
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message, status:, body:) ⇒ EndpointError
constructor
A new instance of EndpointError.
Constructor Details
#initialize(message, status:, body:) ⇒ EndpointError
Returns a new instance of EndpointError.
24 25 26 27 28 |
# File 'lib/lambda/microvms/error.rb', line 24 def initialize(, status:, body:) @status = status @body = body super() end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
22 23 24 |
# File 'lib/lambda/microvms/error.rb', line 22 def body @body end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
22 23 24 |
# File 'lib/lambda/microvms/error.rb', line 22 def status @status end |