一个建议-自定义异常返回函数执行出错信息

Open
#5 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Refactor
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
testing

Research direction

The issue names remote operations such as clickscreen and clickview, but no files or tests. Start by locating those implementations and the other helper methods that currently return boolean, return void, or log failures. Define the consistent return and exception behavior, then verify the affected operations and their failure paths.

Written by the indexing model from the issue text.

Description

remote的一些操作返回值为void(clickscreen),一些返回值为boolean(clickview),能不能统一一下,全部改为返回void,而返回为boolean的,失败的点返回一些自定义异常,这样函数执行失败,返回的信息稍微多一点。同样其他的一些与空间无关的辅助方法,失败也最好别用log的形式,多定义一些异常,会不会更清晰一点?

Dominant language
Java
Stars
367
Forks
210
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from baidu/Cafe

All issues in baidu/Cafe

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.