Module: Robustly

Defined in:
lib/robustly.rb,
lib/robustly/version.rb

Defined Under Namespace

Modules: Methods

Constant Summary collapse

DEFAULT_EXCEPTION_METHOD =
proc do |e|
  e = e.dup # leave original exception unmodified
  e.message.prepend("[safely] ") if e.message && Robustly.tag
  Errbase.report(e)
end
VERSION =
"0.1.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.envObject

Returns the value of attribute env.



6
7
8
# File 'lib/robustly.rb', line 6

def env
  @env
end

.raise_envsObject

Returns the value of attribute raise_envs.



6
7
8
# File 'lib/robustly.rb', line 6

def raise_envs
  @raise_envs
end

.report_exception_methodObject

Returns the value of attribute report_exception_method.



6
7
8
# File 'lib/robustly.rb', line 6

def report_exception_method
  @report_exception_method
end

.tagObject

Returns the value of attribute tag.



6
7
8
# File 'lib/robustly.rb', line 6

def tag
  @tag
end

Class Method Details

.report_exception(e) ⇒ Object



8
9
10
# File 'lib/robustly.rb', line 8

def report_exception(e)
  report_exception_method.call(e)
end