加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090302010330/http://developer.android.com:80/reference/java/net/ProtocolException.html
public class

ProtocolException

extends IOException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.net.ProtocolException

Class Overview

An attempt to connect to a socket of the wrong type (stream or nonstream) will trigger this exception. An invalid operation applied on the protocol that doesn't support it will also throw this exception.

See Also

Summary

Public Constructors
ProtocolException()
Constructs a new instance of this class with its walkback filled in.
ProtocolException(String detailMessage)
Constructs a new instance of this class with its walkback and message filled in.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ProtocolException ()

Constructs a new instance of this class with its walkback filled in.

public ProtocolException (String detailMessage)

Constructs a new instance of this class with its walkback and message filled in.

Parameters
detailMessage String The detail message for the exception.