Class MethodNotAllowedException
Defines an exception class for the HTTP error Method Not Allowed.
Inheritance
Implements
Inherited Members
Namespace: Juhta.Net.WebApi.Exceptions.ClientErrors
Assembly: Juhta.Net.WebApi.Exceptions.dll
Syntax
public class MethodNotAllowedException : ClientErrorException, ISerializableConstructors
| Improve this Doc View SourceMethodNotAllowedException()
Initializes a new instance.
Declaration
public MethodNotAllowedException()MethodNotAllowedException(ClientError)
Initializes a new instance.
Declaration
public MethodNotAllowedException(ClientError clientError)Parameters
| Type | Name | Description | 
|---|---|---|
| ClientError | clientError | Specifies a client error. | 
MethodNotAllowedException(IEnumerable<ClientError>)
Initializes a new instance.
Declaration
public MethodNotAllowedException(IEnumerable<ClientError> clientErrors)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Collections.Generic.IEnumerable<ClientError> | clientErrors | Specifies a collection of client errors. | 
MethodNotAllowedException(Enum)
Initializes a new instance.
Declaration
public MethodNotAllowedException(Enum errorCode)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Enum | errorCode | Specifies a custom-defined error code. | 
MethodNotAllowedException(Enum, Enum)
Initializes a new instance.
Declaration
public MethodNotAllowedException(Enum errorCode, Enum field)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Enum | errorCode | Specifies a custom-defined error code. | 
| System.Enum | field | Specifies a field to which the error relates. | 
MethodNotAllowedException(Enum, Enum, String)
Initializes a new instance.
Declaration
public MethodNotAllowedException(Enum errorCode, Enum field, string message)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Enum | errorCode | Specifies a custom-defined error code. | 
| System.Enum | field | Specifies a field to which the error relates. | 
| System.String | message | Specifies an error message. | 
MethodNotAllowedException(Enum, Enum, String, String)
Initializes a new instance.
Declaration
public MethodNotAllowedException(Enum errorCode, Enum field, string message, string helpUrl)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Enum | errorCode | Specifies a custom-defined error code. | 
| System.Enum | field | Specifies a field to which the error relates. | 
| System.String | message | Specifies an error message. | 
| System.String | helpUrl | Specifies a URL that provides extra information about the error. | 
MethodNotAllowedException(Enum, String)
Initializes a new instance.
Declaration
public MethodNotAllowedException(Enum errorCode, string message)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Enum | errorCode | Specifies a custom-defined error code. | 
| System.String | message | Specifies an error message. | 
MethodNotAllowedException(Enum, String, String)
Initializes a new instance.
Declaration
public MethodNotAllowedException(Enum errorCode, string field, string message)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Enum | errorCode | Specifies a custom-defined error code. | 
| System.String | field | Specifies a field to which the error relates. | 
| System.String | message | Specifies an error message. | 
MethodNotAllowedException(Enum, String, String, String)
Initializes a new instance.
Declaration
public MethodNotAllowedException(Enum errorCode, string field, string message, string helpUrl)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Enum | errorCode | Specifies a custom-defined error code. | 
| System.String | field | Specifies a field to which the error relates. | 
| System.String | message | Specifies an error message. | 
| System.String | helpUrl | Specifies a URL that provides extra information about the error. | 
MethodNotAllowedException(String)
Initializes a new instance.
Declaration
public MethodNotAllowedException(string message)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | Specifies an error message. | 
MethodNotAllowedException(String, String)
Initializes a new instance.
Declaration
public MethodNotAllowedException(string message, string helpUrl)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | message | Specifies an error message. | 
| System.String | helpUrl | Specifies a URL that provides extra information about the error. |