Exception: Afterbanks::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message:, debug_id:, long_code: nil, additional_info: nil) ⇒ Error

Returns a new instance of Error.



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

def initialize(message:, debug_id:, long_code: nil, additional_info: nil)
  @message = message
  @debug_id = debug_id
  @long_code = long_code
  @additional_info = additional_info
end

Instance Attribute Details

#additional_infoObject (readonly)

Returns the value of attribute additional_info.



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

def additional_info
  @additional_info
end

#debug_idObject (readonly)

Returns the value of attribute debug_id.



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

def debug_id
  @debug_id
end

#long_codeObject (readonly)

Returns the value of attribute long_code.



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

def long_code
  @long_code
end

#messageObject (readonly)

Returns the value of attribute message.



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

def message
  @message
end

Instance Method Details

#codeObject



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

def code
  raise 'Not implemented'
end