Module error

Module error 

Source
Expand description

This module define the types for error handling.

Most the function call on wx-sdk return a SdkResult, it’s a type of std::result::Result<T, SdkError> wrapper.

Structs§

CommonError
Almost every WeChat’s api calling will return a JSON value contains errcode and errmsg, that is a struct for it. When the errcode == 0, it can transmute to SdkResult<()>.

Enums§

CommonResponse
Enum for the return result of http calling WeChat’s api.
SdkError
The SDK self-defined error enum.

Type Aliases§

SdkResult
A wrap of std::result::Result<T, SdkError>.