foo-webview-sdk
    Preparing search index...

    Interface ApiFailure

    What a failed call resolves with. Every generated XxxResponse is XxxSuccess | ApiFailure, so check success before reading the result fields.

    A few methods add fields of their own to the failure, such as candidates on MENU_MATCH_AMBIGUOUS or the window state after a failed window call. Test for them with in ('candidates' in r) and check the value before use.

    interface ApiFailure {
        code: ApiErrorCode;
        details?: JsonValue;
        error: string;
        success: false;
    }
    Index

    Machine-readable reason; see ApiErrorCode.

    details?: JsonValue

    Extra context some failures carry, such as the offending parameter.

    error: string

    Why the call failed.

    success: false