javax.ejb
Annotation Type ApplicationException


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ApplicationException

Applied to an exception to denote that it is an application exception and should be reported to the client directly (i.e., unwrapped).

Since:
EJB 3.0

Optional Element Summary
 boolean inherited
          Indicates whether the application exception designation should apply to subclasses of the annotated exception class.
 boolean rollback
          Indicates whether the container should cause the transaction to rollback when the exception is thrown.
 

rollback

public abstract boolean rollback
Indicates whether the container should cause the transaction to rollback when the exception is thrown.

Default:
false

inherited

public abstract boolean inherited
Indicates whether the application exception designation should apply to subclasses of the annotated exception class.

Since:
EJB 3.1
Default:
true


Submit a bug or feature

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41