Class StatusCodeExtensions
Extensions for status codes
Namespace: Anki.Vector.Types
Assembly: Anki.Vector.dll
Syntax
public static class StatusCodeExtensions
Methods
| Improve this Doc View SourceEnsureSuccess(StatusCode)
Ensures that the status code was successful. If not successful, throws error code.
public static void EnsureSuccess(this StatusCode statusCode)
Parameters
| Type | Name | Description |
|---|---|---|
| StatusCode | statusCode | The status code. |
Exceptions
| Type | Condition |
|---|---|
| VectorRequestException | Received status code of {statusCode} |