org.apache.openejb.jee
Class ApplicationException

java.lang.Object
  extended by org.apache.openejb.jee.ApplicationException

public class ApplicationException
extends Object

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(String exceptionClass, boolean rollback)
           
 
Method Summary
 String getExceptionClass()
           
 String getId()
           
 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)
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)


Copyright © 1999-2011 The Apache OpenEJB development community. All Rights Reserved.