Exception: Aop::PointcutNotFound

Inherits:
StandardError
  • Object
show all
Defined in:
lib/aop/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_errorObject (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_sObject



10
11
12
# File 'lib/aop/errors.rb', line 10

def to_s
  "#{super}\n\tReason: #{original_error.inspect}"
end