GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ucloud-sdk-java/docs/error.md at master · ucloud/ucloud-sdk-java

Expand file tree

/

error.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
17 lines (13 loc) · 400 Bytes
/

error.md

Copy path

File metadata and controls

17 lines (13 loc) · 400 Bytes
Raw
Copy raw file
Download raw file
Edit and raw actions

错误处理

了解如何处理不同类型的 SDK 异常,包括参数错误,RetCode 不为 0 的业务异常等。

try {
    response = client.invoke(request, Response.class);
} catch (ValidatorException e) {
    System.out.println(e.getMessage());
} catch (RetCodeException e) {
    System.out.println(e.getRetCode());
} catch (UCloudException e) {
    e.printStackTrace();
}
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.