Exception: Xendit::Errors

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(error_code, error_message, http_status) ⇒ Errors

Returns a new instance of Errors.



5
6
7
8
9
10
# File 'lib/xendit/errors.rb', line 5

def initialize(error_code, error_message, http_status)
  @error_code = error_code
  @error_message = error_message
  @http_status = http_status
  super(message_string)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



3
4
5
# File 'lib/xendit/errors.rb', line 3

def error_code
  @error_code
end

#error_messageObject (readonly)

Returns the value of attribute error_message.



3
4
5
# File 'lib/xendit/errors.rb', line 3

def error_message
  @error_message
end

#http_statusObject (readonly)

Returns the value of attribute http_status.



3
4
5
# File 'lib/xendit/errors.rb', line 3

def http_status
  @http_status
end