Exception: Lbry::ApiError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/lbry/api_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ ApiError

Returns a new instance of ApiError.



4
5
6
7
8
9
10
# File 'lib/lbry/api_error.rb', line 4

def initialize(attributes)
  @error = attributes.error
  @code = attributes.code
  @message = attributes.message
  @data = attributes.data
  @jsonrpc = attributes.jsonrpc
end