|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.jms Class IllegalStateException
java.lang.Object java.lang.Throwable java.lang.Exception javax.jms.JMSException javax.jms.IllegalStateException
- All Implemented Interfaces:
- Serializable
public class IllegalStateException
- extends JMSException
在非法或不适当的时间调用方法或者提供者未处于所请求操作的适当状态时,抛出此异常。例如,如果在非事务性会话上调用 Session.commit
,则必定抛出此异常。当调用某个不适合于域的方法时,如调用 TopicSession.CreateQueueBrowser
,也会抛出此异常。
version |
|
This exception is thrown when a method is
invoked at an illegal or inappropriate time or if the provider is
not in an appropriate state for the requested operation. For example,
this exception must be thrown if Session.commit
is
called on a non-transacted session. This exception is also called when
a domain inappropriate method is called, such as calling
TopicSession.CreateQueueBrowser
.
- Version:
- April 9, 2002
- Author:
- Rahul Sharma, Kate Stout
- See Also:
- Serialized Form
Constructor Summary | |
---|---|
IllegalStateException(String reason)
Constructs an IllegalStateException with the specified
reason. |
|
IllegalStateException(String reason,
String errorCode)
Constructs an IllegalStateException with the specified reason
and error code. |
Method Summary |
---|
Methods inherited from class javax.jms.JMSException |
---|
getErrorCode, getLinkedException, setLinkedException |
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
IllegalStateException(String reason, String errorCode)
构造带指定原因和错误代码的 IllegalStateException
。
reason | 对异常的描述 |
errorCode | 指定特定于供应商的错误代码的字符串 |
IllegalStateException
public IllegalStateException(String reason, String errorCode)
- Constructs an
IllegalStateException
with the specified reason and error code.- Parameters:
reason
- a description of the exceptionerrorCode
- a string specifying the vendor-specific error code
public
IllegalStateException(String reason)
构造带指定原因的 IllegalStateException
。错误代码默认为 null。
reason | 对异常的描述 |
IllegalStateException
public IllegalStateException(String reason)
- Constructs an
IllegalStateException
with the specified reason. The error code defaults to null.- Parameters:
reason
- a description of the exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!