Exception: Aeternitas::Errors::Ignored
- Inherits:
-
StandardError
- Object
- StandardError
- Aeternitas::Errors::Ignored
- Defined in:
- lib/aeternitas/errors.rb
Overview
Wrapper for ignored errors. This can be used to conveniently exclude certain errors from e.g. error trackers
Instance Attribute Summary collapse
-
#original error(error) ⇒ Object
readonly
the wrapped error.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(original_error) ⇒ Ignored
constructor
Create a new Instance.
Constructor Details
#initialize(original_error) ⇒ Ignored
Create a new Instance.
13 14 15 16 |
# File 'lib/aeternitas/errors.rb', line 13 def initialize(original_error) @original_error = original_error super("#{original_error.class} - #{original_error.}") end |
Instance Attribute Details
#original error(error) ⇒ Object (readonly)
the wrapped error
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/aeternitas/errors.rb', line 7 class Ignored < StandardError attr_reader :original_error # Create a new Instance. # # @param [StandardError] original_error the wrapped error def initialize(original_error) @original_error = original_error super("#{original_error.class} - #{original_error.}") end end |
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
8 9 10 |
# File 'lib/aeternitas/errors.rb', line 8 def original_error @original_error end |