Package jakarta.ejb
Annotation 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
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIndicates whether the application exception designation should apply to subclasses of the annotated exception class.booleanIndicates whether the container should cause the transaction to rollback when the exception is thrown.
-
Element Details
-
rollback
boolean rollbackIndicates whether the container should cause the transaction to rollback when the exception is thrown.- Returns:
- a boolean.
- Default:
- false
-
inherited
boolean inheritedIndicates whether the application exception designation should apply to subclasses of the annotated exception class.- Returns:
- a boolean.
- Since:
- EJB 3.1
- Default:
- true
-