Definition
Assembly: Microsoft.Restier.Core.dll Namespace: Microsoft.Restier.Core Inheritance: System.ExceptionSyntax
Summary
Use this exception when you want to return a specific status codeConstructors
.ctor
Initializes a new instance of the StatusCodeException class.Syntax
.ctor
Initializes a new instance of the StatusCodeException class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
message | string | Plain text error message for this exception. |
.ctor
Initializes a new instance of the StatusCodeException class.Syntax
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
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
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
Property Value
Type:System.Net.HttpStatusCode