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§
- Common
Error - Almost every WeChat’s api calling will return a JSON value contains
errcode
anderrmsg
, that is a struct for it. When theerrcode == 0
, it can transmute toSdkResult<()>
.
Enums§
- Common
Response - 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>
.