org.apache.openejb.jee
Class ApplicationException

java.lang.Object
  extended by 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.


Field Summary
protected  String exceptionClass
           
protected  String id
           
protected  boolean rollback
           
 
Constructor Summary
ApplicationException()
           
ApplicationException(Class exceptionClass, boolean rollback)
           
ApplicationException(String exceptionClass, boolean rollback)
           
 
Method Summary
 String getExceptionClass()
           
 String getId()
           
 String getKey()
          Gets the immutable key for this object.
 boolean getRollback()
           
 void setExceptionClass(String value)
           
 void setId(String value)
           
 void setRollback(boolean value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exceptionClass

protected String exceptionClass

rollback

protected boolean rollback

id

protected String id
Constructor Detail

ApplicationException

public ApplicationException()

ApplicationException

public ApplicationException(String exceptionClass,
                            boolean rollback)

ApplicationException

public ApplicationException(Class exceptionClass,
                            boolean rollback)
Method Detail

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.