Package org.apache.hc.core5.http
Class MethodNotAllowedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.hc.core5.http.HttpException
-
- org.apache.hc.core5.http.ProtocolException
-
- org.apache.hc.core5.http.MethodNotAllowedException
-
- All Implemented Interfaces:
java.io.Serializable
public class MethodNotAllowedException extends ProtocolException
Signals that an HTTP method is not allowed.- Since:
- 5.5
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodNotAllowedException(java.lang.String message)Creates a new MethodNotAllowedException with the specified detail message.MethodNotAllowedException(java.lang.String message, java.lang.Throwable cause)Creates a new MethodNotAllowedException with the specified detail message and cause.
-
-
-
Constructor Detail
-
MethodNotAllowedException
public MethodNotAllowedException(java.lang.String message)
Creates a new MethodNotAllowedException with the specified detail message.- Parameters:
message- The exception detail message
-
MethodNotAllowedException
public MethodNotAllowedException(java.lang.String message, java.lang.Throwable cause)Creates a new MethodNotAllowedException with the specified detail message and cause.- Parameters:
message- the exception detail messagecause- theThrowablethat caused this exception, ornullif the cause is unavailable, unknown, or not aThrowable
-
-