Module: ExceptionTransformer::ReportableException

Defined in:
lib/exception_transformer/reportable.rb

Overview

Every ‘Reportable` that includes `ReportableException` will be raised with the `reportable?` flag set to true.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



84
85
86
87
# File 'lib/exception_transformer/reportable.rb', line 84

def self.included(base)
  base.include(Reportable) unless base <= Reportable
  base.extend ClassMethods
end

Instance Method Details

#exception(*args) ⇒ Object



99
100
101
102
# File 'lib/exception_transformer/reportable.rb', line 99

def exception(*args)
  mark_reportable!
  super
end