Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] after throwing question ...

Hello,

   Is there any way to "stop" an exception propagation raised in a
method?  For example:

  after(Object o, double d) throwing:
	 execution(* Foo.m1(..)) &&
	 target(o)
	 && args(d){

		//do something

		//stop the exception propagation

			}

		}

	
  In such example, after m1 returns with an exception raised, I would
like to do something and stop or "catch" such an exception ... I know
that with around it is possible ... but is it with after throwing?

Regards,
Fabio





Back to the top