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..prepend("[safely] ") if e. && Robustly.tag Errbase.report(e) end
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.env ⇒ Object
Returns the value of attribute env.
-
.raise_envs ⇒ Object
Returns the value of attribute raise_envs.
-
.report_exception_method ⇒ Object
Returns the value of attribute report_exception_method.
-
.tag ⇒ Object
Returns the value of attribute tag.
Class Method Summary collapse
Class Attribute Details
.env ⇒ Object
Returns the value of attribute env.
6 7 8 |
# File 'lib/robustly.rb', line 6 def env @env end |
.raise_envs ⇒ Object
Returns the value of attribute raise_envs.
6 7 8 |
# File 'lib/robustly.rb', line 6 def raise_envs @raise_envs end |
.report_exception_method ⇒ Object
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 |
.tag ⇒ Object
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 |