Class: Rosette::Core::RaisingErrorReporter

Inherits:
ErrorReporter show all
Defined in:
lib/rosette/core/error_reporters/raising_error_reporter.rb

Overview

Raises errors instead of printing or logging them.

Instance Method Summary collapse

Methods inherited from ErrorReporter

#with_error_reporting

Instance Method Details

#report_error(error, options = {}) ⇒ void

This method returns an undefined value.

Raises an error.

Parameters:

  • error (Exception)

    The error to raise.

  • options (Hash) (defaults to: {})

    A hash of associated options.


13
14
15
# File 'lib/rosette/core/error_reporters/raising_error_reporter.rb', line 13

def report_error(error, options = {})
  raise error
end

#report_warning(error, options = {}) ⇒ void

This method returns an undefined value.

Does nothing.

Parameters:

  • error (Exception)

    An error, but nothing is done with it.

  • options (Hash) (defaults to: {})

    A hash of associated options.


22
23
# File 'lib/rosette/core/error_reporters/raising_error_reporter.rb', line 22

def report_warning(error, options = {})
end