|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.jms Class JMSException
java.lang.Object java.lang.Throwable java.lang.Exception javax.jms.JMSException
- 所有已实现的接口:
- Serializable
- 直接已知子类:
- IllegalStateException, InvalidClientIDException, InvalidDestinationException, InvalidSelectorException, JMSSecurityException, MessageEOFException, MessageFormatException, MessageNotReadableException, MessageNotWriteableException, ResourceAllocationException, TransactionInProgressException, TransactionRolledBackException
public class JMSException
- extends Exception
This is the root class of all JMS API exceptions.
It provides the following information:
- A provider-specific string describing the error. This string is
the standard exception message and is available via the
getMessage
method. - A provider-specific string error code
- A reference to another exception. Often a JMS API exception will be the result of a lower-level problem. If appropriate, this lower-level exception can be linked to the JMS API exception.
- 版本:
- 1.0 - 5 Oct 1998
- 作者:
- Mark Hapner, Rich Burridge
- 另请参见:
- Serialized Form
构造器摘要 | |
---|---|
JMSException(String reason)
Constructs a JMSException with the specified reason and with
the error code defaulting to null. |
|
JMSException(String reason,
String errorCode)
Constructs a JMSException with the specified reason and
error code. |
方法摘要 | |
---|---|
String |
getErrorCode()
Gets the vendor-specific error code. |
Exception |
getLinkedException()
Gets the exception linked to this one. |
void |
setLinkedException(Exception ex)
Adds a linked Exception . |
类方法继承 java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造器详细信息 |
---|
JMSException
public JMSException(String reason, String errorCode)
- Constructs a
JMSException
with the specified reason and error code.- 参数:
reason
- a description of the exceptionerrorCode
- a string specifying the vendor-specific error code
JMSException
public JMSException(String reason)
- Constructs a
JMSException
with the specified reason and with the error code defaulting to null.- 参数:
reason
- a description of the exception
方法详细信息 |
---|
getErrorCode
public String getErrorCode()
- Gets the vendor-specific error code.
- 返回:
- a string specifying the vendor-specific error code
getLinkedException
public Exception getLinkedException()
- Gets the exception linked to this one.
- 返回:
- the linked
Exception
, null if none
setLinkedException
public void setLinkedException(Exception ex)
- Adds a linked
Exception
. - 参数:
ex
- the linkedException
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.