Exception: MailruApi::Client::ServerError
- Defined in:
- lib/mailru_api/client.rb
Overview
Server side error
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#method ⇒ Object
Returns the value of attribute method.
-
#params ⇒ Object
Returns the value of attribute params.
-
#session ⇒ Object
Returns the value of attribute session.
Instance Method Summary collapse
-
#initialize(client, method, params, error) ⇒ ServerError
constructor
A new instance of ServerError.
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
#error ⇒ Object
Returns the value of attribute error.
78 79 80 |
# File 'lib/mailru_api/client.rb', line 78 def error @error end |
#method ⇒ Object
Returns the value of attribute method.
78 79 80 |
# File 'lib/mailru_api/client.rb', line 78 def method @method end |
#params ⇒ Object
Returns the value of attribute params.
78 79 80 |
# File 'lib/mailru_api/client.rb', line 78 def params @params end |
#session ⇒ Object
Returns the value of attribute session.
78 79 80 |
# File 'lib/mailru_api/client.rb', line 78 def session @session end |