Skip to content

Most visited

Recently visited

navigation

ProtocolException | Android Developers

to top
Android APIs
public class

ProtocolException

extends HttpException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ org.apache.http.HttpException
         ↳ org.apache.http.ProtocolException
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

Signals that an HTTP protocol violation has occurred. For example a malformed status line or headers, a missing message body, etc.

Summary

Public Constructors
ProtocolException()
Creates a new ProtocolException with a null detail message.
ProtocolException(String message)
Creates a new ProtocolException with the specified detail message.
ProtocolException(String message, Throwable cause)
Creates a new ProtocolException with the specified detail message and cause.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public ProtocolException ()

Added in API level 1

Creates a new ProtocolException with a null detail message.

public ProtocolException (String message)

Added in API level 1

Creates a new ProtocolException with the specified detail message.

Parameters
message The exception detail message

public ProtocolException (String message, Throwable cause)

Added in API level 1

Creates a new ProtocolException with the specified detail message and cause.

Parameters
message the exception detail message
cause the Throwable that caused this exception, or null if the cause is unavailable, unknown, or not a Throwable
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.