Exception: GAuthifyError
- Inherits:
-
Exception
- Object
- Exception
- GAuthifyError
- Defined in:
- lib/gauthify.rb
Direct Known Subclasses
ApiKeyError, NotFoundError, ParameterError, RateLimitError, ServerError
Instance Attribute Summary collapse
-
#error_code ⇒ Object
readonly
Returns the value of attribute error_code.
-
#http_status ⇒ Object
readonly
Returns the value of attribute http_status.
-
#msg ⇒ Object
readonly
Returns the value of attribute msg.
-
#response_body ⇒ Object
readonly
Returns the value of attribute response_body.
Instance Method Summary collapse
-
#initialize(msg, http_status = '', error_code = '', response_body = '') ⇒ GAuthifyError
constructor
A new instance of GAuthifyError.
Constructor Details
#initialize(msg, http_status = '', error_code = '', response_body = '') ⇒ GAuthifyError
Returns a new instance of GAuthifyError.
13 14 15 16 17 18 |
# File 'lib/gauthify.rb', line 13 def initialize(msg, http_status = '', error_code = '', response_body='') @msg = msg @http_status = http_status @error_code = error_code @response_body = response_body end |
Instance Attribute Details
#error_code ⇒ Object (readonly)
Returns the value of attribute error_code.
11 12 13 |
# File 'lib/gauthify.rb', line 11 def error_code @error_code end |
#http_status ⇒ Object (readonly)
Returns the value of attribute http_status.
11 12 13 |
# File 'lib/gauthify.rb', line 11 def http_status @http_status end |
#msg ⇒ Object (readonly)
Returns the value of attribute msg.
11 12 13 |
# File 'lib/gauthify.rb', line 11 def msg @msg end |
#response_body ⇒ Object (readonly)
Returns the value of attribute response_body.
11 12 13 |
# File 'lib/gauthify.rb', line 11 def response_body @response_body end |