Exception: ServerError

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

Overview

Custom error classes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response_content, is_oauth_error = false, error_code = nil) ⇒ ServerError

Returns a new instance of ServerError.



2206
2207
2208
2209
2210
2211
# File 'lib/zoho_analytics_client.rb', line 2206

def initialize(response_content, is_oauth_error=false, error_code=nil)
  @response_content = response_content
  @is_oauth_error = is_oauth_error
  @error_code = error_code
  super(response_content)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



2205
2206
2207
# File 'lib/zoho_analytics_client.rb', line 2205

def error_code
  @error_code
end

#is_oauth_errorObject (readonly)

Returns the value of attribute is_oauth_error.



2205
2206
2207
# File 'lib/zoho_analytics_client.rb', line 2205

def is_oauth_error
  @is_oauth_error
end

#response_contentObject (readonly)

Returns the value of attribute response_content.



2205
2206
2207
# File 'lib/zoho_analytics_client.rb', line 2205

def response_content
  @response_content
end