Exception: Thirdweb::Engine::APIError

Inherits:
Error
  • Object
show all
Defined in:
lib/thirdweb/engine/errors.rb

Overview

API errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ self



18
19
20
21
22
# File 'lib/thirdweb/engine/errors.rb', line 18

def initialize(status, body)
  @status = status
  @body = body
  super("API Error: #{status} - #{body}")
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



13
14
15
# File 'lib/thirdweb/engine/errors.rb', line 13

def body
  @body
end

#statusObject (readonly)

Returns the value of attribute status.



13
14
15
# File 'lib/thirdweb/engine/errors.rb', line 13

def status
  @status
end