Exception: BrickFTP::RESTfulAPI::Client::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/brick_ftp/restful_api/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error) ⇒ Error

Returns a new instance of Error.

Parameters:

  • error (BrickFTP::Adapters::RESTfulAPI::ErrorResponse)


29
30
31
32
33
# File 'lib/brick_ftp/restful_api/client.rb', line 29

def initialize(error)
  super error.error

  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



26
27
28
# File 'lib/brick_ftp/restful_api/client.rb', line 26

def error
  @error
end