Exception: Lambda::MicroVMs::EndpointError

Inherits:
Error
  • Object
show all
Defined in:
lib/lambda/microvms/error.rb

Overview

Raised when a MicroVM endpoint call fails with a non-success response.

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message, status:, body:)
  @status = status
  @body = body
  super(message)
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



22
23
24
# File 'lib/lambda/microvms/error.rb', line 22

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



22
23
24
# File 'lib/lambda/microvms/error.rb', line 22

def status
  @status
end