Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Introducing ErrorCode#253

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
andreagilardoni wants to merge14 commits intoarduino:master
base:master
Choose a base branch
Loading
fromandreagilardoni:error-codes

Conversation

andreagilardoni
Copy link
Contributor

The objective of this PR is to introduce a method to provide better error codes to our apis.

This is intended to provide:

  • Error codes, different from the generic 0 value return
  • Unified error codes values

The objective of error code class to wrap an integer that may bereturned from a function that may fail for different reasons. Since weare not able to return values different from 0 in case of error in thearduino language we need to wrap them into this class and redefineboolean operator to mantain the same behaviour
The objective of ReturnValue is to maintain coherency with ErrorCodeclass in cases where a single value is used to represent both the errorand the return value
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@andreagilardoni@per1234

[8]ページ先頭

©2009-2025 Movatter.jp