Android APIs
public class

MethodNotSupportedException

extends HttpException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ org.apache.http.HttpException
         ↳ org.apache.http.MethodNotSupportedException

This class is deprecated.
Please use openConnection() instead. Please visit this webpage for further details.

Class Overview

Indicates that an HTTP method is not supported.

Summary

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

Public Constructors

public MethodNotSupportedException (String message)

Added in API level 1

Creates a new MethodNotSupportedException with the specified detail message.

Parameters
message The exception detail message

public MethodNotSupportedException (String message, Throwable cause)

Added in API level 1

Creates a new MethodNotSupportedException 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