Exception: ServerError
- Inherits:
-
StandardError
- Object
- StandardError
- ServerError
- Defined in:
- lib/zoho_analytics_client.rb
Overview
Custom error classes
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#is_oauth_error ⇒ Object
readonly
Returns the value of attribute is_oauth_error.
-
#response_content ⇒ Object
readonly
Returns the value of attribute response_content.
Instance Method Summary collapse
-
#initialize(response_content, is_oauth_error = false, error_code = nil) ⇒ ServerError
constructor
A new instance of ServerError.
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_code ⇒ Object (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_error ⇒ Object (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_content ⇒ Object (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 |