public class ProtocolException extends WebServiceException
ProtocolException类是与特定协议绑定相关的ProtocolException的基类。 
       子类用于向客户端传送协议级故障信息,并可在服务器上使用以控制协议特定的故障表示。 
      | Constructor and Description | 
|---|
| ProtocolException()
              构造一个新协议异常,以 
              null作为其详细消息。 | 
| ProtocolException(String message)
              使用指定的详细消息构造新的协议异常。 
             | 
| ProtocolException(String message, Throwable cause)
              构造一个新的运行时异常与指定的详细信息和原因。 
             | 
| ProtocolException(Throwable cause)
              构造一个新的运行时异常,指定原因和详细消息为 
              (cause==null ? null : cause.toString())(通常包含原因的类和详细消息)。 | 
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ProtocolException()
null作为其详细消息。 
           原因未初始化,可以随后通过调用Throwable.initCause(java.lang.Throwable)进行Throwable.initCause(java.lang.Throwable) 。 
          public ProtocolException(String message)
Throwable.initCause(java.lang.Throwable)进行Throwable.initCause(java.lang.Throwable) 。 
          message - 详细信息。 
            保存详细信息以供Throwable.getMessage()方法稍后检索。 
           public ProtocolException(String message, Throwable cause)
message - 详细消息(保存以供Throwable.getMessage()方法稍后检索)。 
           cause - 原因(保存为Throwable.getCause()方法后续检索)。 
            (A null值,表示原因不存在或未知。) 
           public ProtocolException(Throwable cause)
(cause==null ? null : cause.toString()) (其通常包含原因的类和详细消息)的详细消息。 
           这个构造函数对于运行时异常非常有用,对于其他throwable来说,它不仅仅是包装器。 
          cause - 原因(保存以供Throwable.getCause()方法稍后检索)。 
            ( null值为null,表示原因不存在或未知。) 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.