Exception: GAuthifyError

Inherits:
Exception
  • Object
show all
Defined in:
lib/gauthify.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(msg, http_status = '', error_code = '', response_body = '') ⇒ GAuthifyError

Returns a new instance of GAuthifyError.



14
15
16
17
18
19
# File 'lib/gauthify.rb', line 14

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_codeObject (readonly)

Returns the value of attribute error_code.



12
13
14
# File 'lib/gauthify.rb', line 12

def error_code
  @error_code
end

#http_statusObject (readonly)

Returns the value of attribute http_status.



12
13
14
# File 'lib/gauthify.rb', line 12

def http_status
  @http_status
end

#msgObject (readonly)

Returns the value of attribute msg.



12
13
14
# File 'lib/gauthify.rb', line 12

def msg
  @msg
end

#response_bodyObject (readonly)

Returns the value of attribute response_body.



12
13
14
# File 'lib/gauthify.rb', line 12

def response_body
  @response_body
end