Exception: PgEventstore::WrappedException

Inherits:
Error
  • Object
show all
Defined in:
lib/pg_eventstore/errors.rb,
sig/pg_eventstore/errors.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#as_json, #to_h

Constructor Details

#initialize(original_exception, extra) ⇒ WrappedException

Returns a new instance of WrappedException.

Parameters:

  • original_exception (StandardError)
  • extra (Hash[Symbol, untyped])


375
376
377
378
379
# File 'lib/pg_eventstore/errors.rb', line 375

def initialize(original_exception, extra)
  @original_exception = original_exception
  @extra = extra
  super()
end

Instance Attribute Details

#extraHash[Symbol, untyped]

Returns the value of attribute extra.

Returns:

  • (Hash[Symbol, untyped])


373
374
375
# File 'lib/pg_eventstore/errors.rb', line 373

def extra
  @extra
end

#original_exceptionStandardError

Returns the value of attribute original_exception.

Returns:

  • (StandardError)


372
373
374
# File 'lib/pg_eventstore/errors.rb', line 372

def original_exception
  @original_exception
end