@Alexander
option c is my concern
very appreciate for your help , thanks again .

@Ron
thank you so much for your info
Just studying on that website

On Thu, Aug 30, 2012 at 10:46 PM, Ron DiFrango-2 [via AspectJ] <
ml-node+s2085585n4650508...@n4.nabble.com> wrote:

> If you are trying to implement the logic of handling the exception then
> the joinpoint "handler" is what you are after.  Here is some sample code on
> the aspectj site to look at:
>
> http://www.eclipse.org/aspectj/sample-code.html#language-handlerContext
>
> Ron DiFrango
> Director / Architect  |  CapTech
> (804) 855-9196  |  [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4650508&i=0>
>
> ________________________________________
> From: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4650508&i=1>[[hidden
> email] <http://user/SendEmail.jtp?type=node&node=4650508&i=2>] on behalf
> of Alexander Kriegisch [[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=4650508&i=3>]
>
> Sent: Thursday, August 30, 2012 6:24 AM
> To: [hidden email] <http://user/SendEmail.jtp?type=node&node=4650508&i=4>
> Subject: Re: [aspectj-users] can anyone help me to take a look my
> exceptionhandler ?
>
> Yes, I think I can help you if you tell me (in prose, not in code) what
> you want to achieve: Do you want to
>   a) intercept and log the exceptions in your production code, then pass
>      them through (i.e. let them happen)?
>   b) intercept and log the exceptions in your production code, but *not*
>      pass them through (i.e. catch them)?
>   c) just avoid code duplication with try/catch blocks in your test
>      cases?
>   d) anything else?
>
> --
> Alexander Kriegisch
>
>
> xianglong, 30.08.2012 11:46:
>
> > could you help me to make a simple demo of my example ?("caseName is a
> > method name of one testcase")
> > I will have a try that drop the *catch* block  in my testcase
> >
> > On Thu, Aug 30, 2012 at 5:34 PM, Alexander Kriegisch-2 [via AspectJ]
> > <[hidden email] </user/SendEmail.jtp?type=node&node=4650506&i=0>> wrote:
> >
> >     The "after throwing" pointcut, as the name implies, matches
> joinpoints
> >     *after* a method is *throwing* an exception. Your example method
> >     "caseName", as far as I understand your code, does *not* throw any
> >     exceptions, because it catches them, calls the logger/handler and
> then
> >     exits gracefully.
> _______________________________________________
> aspectj-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4650508&i=5>
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
> _______________________________________________
> aspectj-users mailing list
> [hidden email] <http://user/SendEmail.jtp?type=node&node=4650508&i=6>
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://aspectj.2085585.n4.nabble.com/can-anyone-help-me-to-take-a-look-my-exceptionhandler-tp4650503p4650508.html
>  To unsubscribe from can anyone help me to take a look my exceptionhandler
> ?, click 
> here<http://aspectj.2085585.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4650503&code=bXhsNDE4NUBnbWFpbC5jb218NDY1MDUwM3wzODI5MDIxOTI=>
> .
> NAML<http://aspectj.2085585.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://aspectj.2085585.n4.nabble.com/can-anyone-help-me-to-take-a-look-my-exceptionhandler-tp4650503p4650509.html
Sent from the AspectJ - users mailing list archive at Nabble.com.
_______________________________________________
aspectj-users mailing list
aspectj-users@eclipse.org
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to