.NET SDK Documentation

    Show / Hide Table of Contents

    Class StatusCodeExtensions

    Extensions for status codes

    Inheritance
    Object
    StatusCodeExtensions
    Namespace: Anki.Vector.Types
    Assembly: Anki.Vector.dll
    Syntax
    public static class StatusCodeExtensions

    Methods

    | Improve this Doc View Source

    EnsureSuccess(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}

    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2019 by Wayne Venables