[jboss-jira] [JBoss JIRA] Commented: (JBAOP-387) Throw Exceptions when a valid advice is not found
Flavia Rainone (JIRA)
jira-events at lists.jboss.org
Tue Jun 12 21:22:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAOP-387?page=comments#action_12365127 ]
Flavia Rainone commented on JBAOP-387:
--------------------------------------
What would be the exception type? We could either throw a RuntimeException with a message describing the cause of invalidation, or we could throw a RuntimeException of our own, like:
public class InvalidAdviceException extends RuntimeException {...}
> Throw Exceptions when a valid advice is not found
> -------------------------------------------------
>
> Key: JBAOP-387
> URL: http://jira.jboss.com/jira/browse/JBAOP-387
> Project: JBoss AOP
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Flavia Rainone
> Assigned To: Flavia Rainone
> Fix For: 2.0.0.alpha5
>
>
> We need to throw an exception warning the user that a valid advice method couldn't be found for a specific joinpoint scenario. (currently, we are printing warnings in the org.jboss.aop.advice.annotation.AdviceMethodFactory algorithm).
> This task involves changes to org.jboss.aop.advice.PerVMAdvice and org.jboss.aop.advice.annotation.AdviceMethodFactory classes.
> We also need to update the documentation, telling when this runtime exception will be thrown.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list