baidu / baidu/Cafe

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

Open
#5 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
367
Forks
209
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.