org.jboss.solder.exception.control
Annotation Type ExceptionHandled


@InterceptorBinding
@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface ExceptionHandled

Interceptor annotation to wrap a method, or each method of a class, in a try / catch which will pass all exceptions to Seam Catch. The preferred way to use Catch is still going to be to inject an Event and manually fire the event, this interceptor is added here as another option, however, there is no control over qualifiers being added for the handlers. Also use of this interceptor may result in odd behavior of the application based on returns of the interceptor when exceptions occur, please see the implementation of this interceptor for more detail (org.jboss.seam.ecxeption.control.ExceptionHandledInterceptor).

Author:
Jason Porter



Copyright © 2008-2011 Seam Framework. All Rights Reserved.