Module: Enrichment

Extended by:
Enrichment
Included in:
Capybara::CapybaraError, Enrichment, QAT::Web::Error
Defined in:
lib/qat/web/error/enrichment.rb

Overview

Should be include in the target exception class to be enriched in runtime.

Instance Method Summary collapse

Instance Method Details

#rich_msg(msg) ⇒ String

Enrichs an exception message with the last configuration access in QAT::Web

Parameters:

  • msg (String)

    exception message to be enriched

Returns:

  • (String)


10
11
12
13
# File 'lib/qat/web/error/enrichment.rb', line 10

def rich_msg(msg)
  access = QAT::Web::Configuration.last_access
  "#{msg}\nQAT::Web last access to configuration was '#{access}'"
end