Exception: Aop::PointcutNotFound
- Inherits:
-
StandardError
- Object
- StandardError
- Aop::PointcutNotFound
- Defined in:
- lib/aop/errors.rb
Instance Attribute Summary collapse
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
Instance Method Summary collapse
-
#initialize(pointcut_spec, original_error) ⇒ PointcutNotFound
constructor
A new instance of PointcutNotFound.
- #to_s ⇒ Object
Constructor Details
#initialize(pointcut_spec, original_error) ⇒ PointcutNotFound
Returns a new instance of PointcutNotFound.
5 6 7 8 |
# File 'lib/aop/errors.rb', line 5 def initialize(pointcut_spec, original_error) super("Unable to find pointcut #{pointcut_spec}") @original_error = original_error end |
Instance Attribute Details
#original_error ⇒ Object (readonly)
Returns the value of attribute original_error.
3 4 5 |
# File 'lib/aop/errors.rb', line 3 def original_error @original_error end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/aop/errors.rb', line 10 def to_s "#{super}\n\tReason: #{original_error.inspect}" end |