Skip to main content

Base Library (toolbox) Error Codes

Codes thrown by @cloudbase/toolbox as the base library, covering network, authentication and config parsing. Their source is toolbox.

6 codes in total. Each bullet below is the verbatim message emitted at runtime (… marks values that vary with context); message text is currently emitted in Chinese by the SDK and is pending translation.

API_ERROR​

  • Device Flow 授权失败:返回数据异常

AUTH_FAILED​

  • Thrown when a local step fails; see the message for details.

FILE_READ_ERROR​

  • Thrown when a local step fails; see the message for details.

INVALID_PARAM​

  • 配置文件解析失败,请检查你的配置文件格式是否正确!

NETWORK_ERROR​

  • 等待浏览器授权回调超时(…s)!

NOT_FOUND​

  • Thrown when a local step fails; see the message for details.