Exception: DlocalGo::Error

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

Overview

Generic error class for all errors that occur in the gem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, error_code: nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/dlocal_go/errors.rb', line 8

def initialize(message, error_code: nil)
  @error_code = error_code
  super(message)
end

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



6
7
8
# File 'lib/dlocal_go/errors.rb', line 6

def error_code
  @error_code
end