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.



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

Returns the value of attribute error_code.



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

def error_code
  @error_code
end

#http_statusObject (readonly)

Returns the value of attribute http_status.



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

def http_status
  @http_status
end

#msgObject (readonly)

Returns the value of attribute msg.



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

def msg
  @msg
end

#response_bodyObject (readonly)

Returns the value of attribute response_body.



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

def response_body
  @response_body
end