org.openejb
Class ApplicationException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--org.openejb.OpenEJBException
|
+--org.openejb.ApplicationException
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- InvalidateReferenceException
- public class ApplicationException
- extends OpenEJBException
--------------
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.
- See Also:
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)
|
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, toString |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ApplicationException
public ApplicationException()
- Constructs an empty ApplicationException instance.
ApplicationException
public ApplicationException(java.lang.String message)
- Constructs a ApplicationException with the specified message indicating
the source of the problem that occurred.
- Parameters:
message
- String
identifying the source of the problem.
ApplicationException
public ApplicationException(java.lang.Exception e)
- Constructs a ApplicationException with the source of the problem that occurred.
- Parameters:
e
-
ApplicationException
public ApplicationException(java.lang.Throwable t)
ApplicationException
public 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.
- Parameters:
message
- String
identifying the source of the problem.e
-