|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.openejb.OpenEJBException
org.openejb.ApplicationException
public class ApplicationException
-------------- EJB 2.0 18.1.1 Application exceptions An application exception is an exception defined in the throws clause of a method of the enterprise bean?s home and component interfaces, other than the java.rmi.RemoteException. Enterprise bean business methods use application exceptions to inform the client of abnormal application-level conditions, such as unacceptable values of the input arguments to a business method. A client can typically recover from an application exception. Application exceptions are not intended for reporting system-level problems. --------------- This exception is thrown when a normal EnterpriseBean exception is thrown. The ApplicationException's nested exception will be either an EJB spec defined ApplicationException ( or a custom exception defined by the bean developer) or a RemoteException. The org.openejb.ApplicationException must be caught and its nested exception rethrown by the bean proxy to the client. The org.openejb.ApplicationException is non-system exception; it does NOT indicate a problem with the contaienr itself.
ApplicationException,
InvalidateReferenceException,
OpenEJBException,
SystemException,
Serialized Form| Constructor Summary | |
|---|---|
ApplicationException()
Constructs an empty ApplicationException instance. |
|
ApplicationException(java.lang.Exception e)
Constructs a ApplicationException with the source of the problem that occurred. |
|
ApplicationException(java.lang.String message)
Constructs a ApplicationException with the specified message indicating the source of the problem that occurred. |
|
ApplicationException(java.lang.String message,
java.lang.Exception e)
Constructs a ApplicationException with the specified message indicating the source of the problem that occurred and the original "root cause" exception that was thrown when the problem occurred. |
|
ApplicationException(java.lang.Throwable t)
|
|
| Method Summary |
|---|
| Methods inherited from class org.openejb.OpenEJBException |
|---|
getMessage, getRootCause, printStackTrace, printStackTrace, printStackTrace |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ApplicationException()
public ApplicationException(java.lang.String message)
message - String identifying the source of the problem.public ApplicationException(java.lang.Exception e)
e - public ApplicationException(java.lang.Throwable t)
public ApplicationException(java.lang.String message,
java.lang.Exception e)
message - String identifying the source of the problem.e -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||