|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.ejb Class EJBException
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.ejb.EJBException
- 所有已实现的接口:
- Serializable
- 直接已知子类:
- AccessLocalException, ConcurrentAccessException, EJBAccessException, EJBTransactionRequiredException, EJBTransactionRolledbackException, NoSuchEJBException, NoSuchEntityException, NoSuchObjectLocalException, TransactionRequiredLocalException, TransactionRolledbackLocalException
public class EJBException
- extends RuntimeException
The EJBException exception is thrown by an enterprise Bean instance to its container to report that the invoked business method or callback method could not be completed because of an unexpected error (e.g. the instance failed to open a database connection).
- 另请参见:
- Serialized Form
构造器摘要 | |
---|---|
EJBException()
Constructs an EJBException with no detail message. |
|
EJBException(Exception ex)
Constructs an EJBException that embeds the originally thrown exception. |
|
EJBException(String message)
Constructs an EJBException with the specified detailed message. |
|
EJBException(String message,
Exception ex)
Constructs an EJBException that embeds the originally thrown exception with the specified detail message. |
方法摘要 | |
---|---|
Exception |
getCausedByException()
Obtain the exception that caused the EJBException being thrown. |
String |
getMessage()
Returns the detail message, including the message from the nested exception if there is one. |
void |
printStackTrace()
Prints the composite message to System.err . |
void |
printStackTrace(PrintStream ps)
Prints the composite message and the embedded stack trace to the specified stream ps . |
void |
printStackTrace(PrintWriter pw)
Prints the composite message and the embedded stack trace to the specified print writer pw . |
类方法继承 java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace, toString |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造器详细信息 |
---|
EJBException
public EJBException()
- Constructs an EJBException with no detail message.
EJBException
public EJBException(String message)
- Constructs an EJBException with the specified
detailed message.
EJBException
public EJBException(Exception ex)
- Constructs an EJBException that embeds the originally thrown exception.
EJBException
public EJBException(String message, Exception ex)
- Constructs an EJBException that embeds the originally thrown exception
with the specified detail message.
方法详细信息 |
---|
getCausedByException
public Exception getCausedByException()
- Obtain the exception that caused the EJBException being thrown.
getMessage
public String getMessage()
- Returns the detail message, including the message from the nested
exception if there is one.
- 重写:
getMessage
in classThrowable
printStackTrace
public void printStackTrace(PrintStream ps)
- Prints the composite message and the embedded stack trace to
the specified stream
ps
. - 重写:
printStackTrace
in classThrowable
- 参数:
ps
- the print stream
printStackTrace
public void printStackTrace()
- Prints the composite message to
System.err
. - 重写:
printStackTrace
in classThrowable
printStackTrace
public void printStackTrace(PrintWriter pw)
- Prints the composite message and the embedded stack trace to
the specified print writer
pw
. - 重写:
printStackTrace
in classThrowable
- 参数:
pw
- the print writer
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.