ProtocolException (Java EE 5)

Java EE API


javax.xml.ws Class ProtocolException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by javax.xml.ws.WebServiceException
                  extended by javax.xml.ws.ProtocolException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
HTTPException, SOAPFaultException

public class ProtocolException
extends WebServiceException

Extends: Throwable > Exception > RuntimeException > WebServiceException

ProtocolException 类是与特定协议绑定有关的异常的基类。子类用来与客户端交流协议级别故障的信息,也可以在服务器上使用,以控制特定于协议的故障表示形式。
英文文档:

The ProtocolException class is a base class for exceptions related to a specific protocol binding. Subclasses are used to communicate protocol level fault information to clients and may be used on the server to control the protocol specific fault representation.

Since:
JAX-WS 2.0
See Also:
Serialized Form

Constructor Summary
 
Method Summary
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public ProtocolException()
构造一个新的协议异常,将 null 作为它的详细消息。cause 没有初始化,随后可以通过调用 Throwable.initCause(java.lang.Throwable) 进行初始化。
英文文档:

ProtocolException

public ProtocolException()
Constructs a new protocol exception with null as its detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).


public ProtocolException(String message)
构造一个具有指定详细消息的新协议异常。cause 没有初始化,随后可以通过调用 Throwable.initCause(java.lang.Throwable) 进行初始化。
message 详细消息。保存该详细消息,以便以后通过 Throwable.getMessage() 方法进行检索。
英文文档:

ProtocolException

public ProtocolException(String message)
Constructs a new protocol exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).

Parameters:
message - the detail message. The detail message is saved for later retrieval by the Throwable.getMessage() method.


public ProtocolException(String message, Throwable cause)
构造一个具有指定详细消息和 cause 的新运行时异常。 注意,与 cause 相关的详细消息不会自动地合并到此运行时异常的详细消息中。
message 详细消息(保存此消息,以便以后通过 Throwable.getMessage() 方法检索它)。
cause cause (保存此 cause,以便以后通过 Throwable.getCause() 方法检索它)。(允许 null 值,指示 cause 是不存在的或是未知的。)
英文文档:

ProtocolException

public ProtocolException(String message,
                         Throwable cause)
Constructs a new runtime exception with the specified detail message and cause. Note that the detail message associated with cause is not automatically incorporated in this runtime exception's detail message.

Parameters:
message - the detail message (which is saved for later retrieval by the Throwable.getMessage() method).
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)


public ProtocolException(Throwable cause)
构造具有指定 cause 和详细消息 (cause==null ? null :cause.toString())(它通常包含 cause 的类和详细消息)的新运行时异常。该构造方法对于那些与其他可抛出异常的包装器一样的运行时异常来说是很有用的。
cause cause (保存此 cause,以便以后通过 Throwable.getCause() 方法检索它)。(允许 null 值,指示 cause 是不存在的或是未知的。)
英文文档:

ProtocolException

public ProtocolException(Throwable cause)
Constructs a new runtime exception with the specified cause and a detail message of (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause). This constructor is useful for runtime exceptions that are little more than wrappers for other throwables.

Parameters:
cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!