Constructor ApiException
ApiException(HttpStatusCode, string)
Initializes a new instance of the ApiException class with a specified HTTP status code and error message.
Declaration
public ApiException(HttpStatusCode statusCode, string message)
Parameters
Type | Name | Description |
---|---|---|
HttpStatusCode | statusCode | |
string | message |
ApiException(HttpStatusCode, string, Exception?)
Initializes a new instance of the ApiException class with a specified HTTP status code, error message and inner exception.
Declaration
public ApiException(HttpStatusCode statusCode, string message, Exception? innerException)
Parameters
Type | Name | Description |
---|---|---|
HttpStatusCode | statusCode | |
string | message | |
Exception | innerException |