Exception: AfterbanksPSD2::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/afterbanks_psd2/error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, debug_id:) ⇒ Error

Returns a new instance of Error.



5
6
7
8
9
10
# File 'lib/afterbanks_psd2/error.rb', line 5

def initialize(message:, debug_id:)
  super

  @message = message
  @debug_id = debug_id
end

Instance Attribute Details

#debug_idObject (readonly)

Returns the value of attribute debug_id.



3
4
5
# File 'lib/afterbanks_psd2/error.rb', line 3

def debug_id
  @debug_id
end

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/afterbanks_psd2/error.rb', line 3

def message
  @message
end

Instance Method Details

#codeObject



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

def code
  raise 'Not implemented'
end