org.apache.openejb.jee
Class ApplicationException
java.lang.Object
org.apache.openejb.jee.ApplicationException
- All Implemented Interfaces:
- Keyable<java.lang.String>
public class ApplicationException
- extends java.lang.Object
- implements Keyable<java.lang.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 java.lang.String exceptionClass
rollback
protected boolean rollback
id
protected java.lang.String id
ApplicationException
public ApplicationException()
ApplicationException
public ApplicationException(java.lang.String exceptionClass,
boolean rollback)
ApplicationException
public ApplicationException(java.lang.Class exceptionClass,
boolean rollback)
getExceptionClass
public java.lang.String getExceptionClass()
setExceptionClass
public void setExceptionClass(java.lang.String value)
getRollback
public boolean getRollback()
setRollback
public void setRollback(boolean value)
getId
public java.lang.String getId()
setId
public void setId(java.lang.String value)
getKey
public java.lang.String getKey()
- Description copied from interface:
Keyable
- Gets the immutable key for this object.
- Specified by:
getKey
in interface Keyable<java.lang.String>
- Returns:
- gets the immutable key for this object
Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.