Table of Contents

Class MethodNotAllowedException

Namespace
Cuemon.AspNetCore.Http
Assembly
Cuemon.AspNetCore.dll

The exception that is thrown when the request method is known by the server but has been disabled and cannot be used.

public class MethodNotAllowedException : HttpStatusCodeException, ISerializable
Inheritance
Object
Exception
MethodNotAllowedException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetType()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
Exception.SerializeObjectState

Constructors

MethodNotAllowedException()

Initializes a new instance of the MethodNotAllowedException class.

public MethodNotAllowedException()

MethodNotAllowedException(Exception)

Initializes a new instance of the MethodNotAllowedException class.

public MethodNotAllowedException(Exception innerException)

Parameters

innerException Exception

The exception that is the cause of the current exception.

MethodNotAllowedException(String, Exception)

Initializes a new instance of the MethodNotAllowedException class.

public MethodNotAllowedException(string message, Exception innerException = null)

Parameters

message String

The message that describes the HTTP status code.

innerException Exception

The exception that is the cause of the current exception.

See Also