Exception: MailruApi::Client::ServerError

Inherits:
Error
  • Object
show all
Defined in:
lib/mailru_api/client.rb

Overview

Server side error

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, method, params, error) ⇒ ServerError

Returns a new instance of ServerError.



79
80
81
82
# File 'lib/mailru_api/client.rb', line 79

def initialize(client, method, params, error)
  super "Server side error calling Mail.ru API method: #{error}"
  @client, @method, @params, @error = client, method, params, error
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



78
79
80
# File 'lib/mailru_api/client.rb', line 78

def error
  @error
end

#methodObject

Returns the value of attribute method.



78
79
80
# File 'lib/mailru_api/client.rb', line 78

def method
  @method
end

#paramsObject

Returns the value of attribute params.



78
79
80
# File 'lib/mailru_api/client.rb', line 78

def params
  @params
end

#sessionObject

Returns the value of attribute session.



78
79
80
# File 'lib/mailru_api/client.rb', line 78

def session
  @session
end