|
|||||||||||
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
-------------- 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 FormConstructor Summary | |
ApplicationException()
Constructs an empty ApplicationException instance. |
|
ApplicationException(Exception e)
Constructs a ApplicationException with the source of the problem that occurred. |
|
ApplicationException(String message)
Constructs a ApplicationException with the specified message indicating the source of the problem that occurred. |
|
ApplicationException(String message,
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(Throwable t)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, 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(String message)
message
- String
identifying the source of the problem.public ApplicationException(Exception e)
e
- public ApplicationException(Throwable t)
public ApplicationException(String message, 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 |