org.apache.openejb.jee
Class ApplicationException
java.lang.Object
org.apache.openejb.jee.ApplicationException
- All Implemented Interfaces:
- Keyable<String>
public class ApplicationException
- extends Object
- implements Keyable<String>
The application-exceptionType declares an application
exception. The declaration consists of:
- the exception class. When the container receives
an exception of this type, it is required to
forward this exception as an applcation exception
to the client regardless of whether it is a checked
or unchecked exception.
- an optional rollback element. If this element is
set to true, the container must rollback the current
transaction before forwarding the exception to the
client.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exceptionClass
protected String exceptionClass
rollback
protected boolean rollback
id
protected String id
ApplicationException
public ApplicationException()
ApplicationException
public ApplicationException(String exceptionClass,
boolean rollback)
ApplicationException
public ApplicationException(Class exceptionClass,
boolean rollback)
getExceptionClass
public String getExceptionClass()
setExceptionClass
public void setExceptionClass(String value)
getRollback
public boolean getRollback()
setRollback
public void setRollback(boolean value)
getId
public String getId()
setId
public void setId(String value)
getKey
public String getKey()
- Description copied from interface:
Keyable
- Gets the immutable key for this object.
- Specified by:
getKey
in interface Keyable<String>
- Returns:
- gets the immutable key for this object
Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.