module Exceptions
Constants
- VERSION
Public Class Methods
clear_context()
click to toggle source
Public: Clear the context.
Returns nothing.
# File lib/exceptions.rb, line 40 def clear_context backend.clear_context end
configuration()
click to toggle source
Public: The configuration object.
Returns a Configuration
instance.
# File lib/exceptions.rb, line 47 def configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
Public: Configure the configuration.
Yields the Configuration
object.
# File lib/exceptions.rb, line 54 def configure yield configuration end
context(ctx)
click to toggle source
Public: Set the context.
Returns nothing.
# File lib/exceptions.rb, line 33 def context(ctx) backend.context ctx end
notify(exception, options = {})
click to toggle source
Public: Forwards the exception to the configured backend.
exception - An Exception object. options - A Hash of options to pass to the backend.
Returns a Result
object.
# File lib/exceptions.rb, line 26 def notify(exception, options = {}) backend.notify exception, options end
Private Class Methods
backend()
click to toggle source
# File lib/exceptions.rb, line 60 def backend configuration.backend end