Exception: Kreuzberg::Errors::Error

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

Overview

Base error class for all Kreuzberg errors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, panic_context: nil, error_code: nil) ⇒ Error

Returns a new instance of Error.



68
69
70
71
72
# File 'lib/kreuzberg/errors.rb', line 68

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

Instance Attribute Details

#error_codeObject (readonly)

Returns the value of attribute error_code.



66
67
68
# File 'lib/kreuzberg/errors.rb', line 66

def error_code
  @error_code
end

#panic_contextObject (readonly)

Returns the value of attribute panic_context.



66
67
68
# File 'lib/kreuzberg/errors.rb', line 66

def panic_context
  @panic_context
end