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