Documentation Index
Fetch the complete documentation index at: https://easyaf.dev/llms.txt
Use this file to discover all available pages before exploring further.
Definition
Assembly: Microsoft.Restier.Core.dll
Namespace: Microsoft.Restier.Core
Inheritance: System.Exception
Syntax
Microsoft.Restier.Core.StatusCodeException
Summary
Use this exception when you want to return a specific status code
Constructors
.ctor
Initializes a new instance of the StatusCodeException class.
Syntax
public StatusCodeException()
.ctor
Initializes a new instance of the StatusCodeException class.
Syntax
public StatusCodeException(string message)
Parameters
| Name | Type | Description |
|---|
message | string | Plain text error message for this exception. |
.ctor
Initializes a new instance of the StatusCodeException class.
Syntax
public StatusCodeException(string message, System.Exception innerException)
Parameters
| Name | Type | Description |
|---|
message | string | Plain text error message for this exception. |
innerException | System.Exception | Exception that caused this exception to be thrown. |
.ctor
Initializes a new instance of the StatusCodeException class.
Syntax
public StatusCodeException(System.Net.HttpStatusCode statusCode, string message)
Parameters
| Name | Type | Description |
|---|
statusCode | System.Net.HttpStatusCode | - |
message | string | Plain text error message for this exception. |
.ctor
Initializes a new instance of the StatusCodeException class.
Syntax
public StatusCodeException(System.Net.HttpStatusCode statusCode, string message, System.Exception innerException)
Parameters
| Name | Type | Description |
|---|
statusCode | System.Net.HttpStatusCode | - |
message | string | Plain text error message for this exception. |
innerException | System.Exception | Exception that caused this exception to be thrown. |
Properties
StatusCode
Syntax
public System.Net.HttpStatusCode StatusCode { get; private set; }
Property Value
Type: System.Net.HttpStatusCode