Module: GovukError
- Defined in:
- lib/govuk_app_config/govuk_error.rb,
lib/govuk_app_config/govuk_error/configuration.rb,
lib/govuk_app_config/govuk_error/govuk_data_sync.rb
Defined Under Namespace
Classes: Configuration, GovukDataSync
Class Method Summary
collapse
Class Method Details
19
20
21
22
|
# File 'lib/govuk_app_config/govuk_error.rb', line 19
def self.configure
@configuration ||= Configuration.new(Raven.configuration)
yield @configuration
end
|
.notify(exception_or_message, args = {}) ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
|
# File 'lib/govuk_app_config/govuk_error.rb', line 7
def self.notify(exception_or_message, args = {})
args[:extra] ||= {}
args[:extra].merge!(parameters: args.delete(:parameters))
args[:tags] ||= {}
args[:tags][:govuk_app_config_version] = GovukAppConfig::VERSION
Raven.capture_exception(exception_or_message, args)
end
|