Exception: RSMP::Validator::Helpers::Connection::UncaughtException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/rsmp/validator/helpers/connection.rb

Overview

Wraps an uncaught exception from a test block, preserving the original class name, message, and backtrace for clearer test failure output.

Instance Method Summary collapse

Constructor Details

#initialize(original) ⇒ UncaughtException

Returns a new instance of UncaughtException.



20
21
22
23
# File 'lib/rsmp/validator/helpers/connection.rb', line 20

def initialize(original)
  super("#{original.class}: #{original.message}")
  set_backtrace(original.backtrace)
end