public class ProtocolException extends WebServiceException
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, toString
public ProtocolException()
null
协议异常的详细信息。原因是没有初始化,初始化,随后可通过调用
Throwable.initCause(java.lang.Throwable)
。
public ProtocolException(String message)
Throwable.initCause(java.lang.Throwable)
。
message
-详细信息。的详细信息保存为以后的检索getmessage()方法错误。
public ProtocolException(String message, Throwable cause)
message
的详细信息(这是以后的时间。getmessage()方法检索)。
cause
的原因(这是以后的
Throwable.getCause()
方法检索)。(一
null
值是允许的,并指出原因是不存在的或未知的。)
public ProtocolException(Throwable cause)
(cause==null ? null : cause.toString())
详细信息运行时异常(通常包含类和详细信息的原因)。此构造函数可用于运行时异常,多为其他throwables包装。
cause
的原因(这是以后的
Throwable.getCause()
方法检索)。(一
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.