Skip to content

[DWarning] The final build of Warning Module #21

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2021
Merged

Conversation

lilingxi01
Copy link
Member

@lilingxi01 lilingxi01 commented Aug 1, 2021

Why do we need this?

The purpose of building DefinedWarning module is that when we have something being improperly used, we should NOT crash the program immediately (especially as a UI library/framework). Instead, we need a way to tell the developer that something which should not happen did happen.

Currently, I did not find any API that I can generate a native warning during runtime.
So our workaround is printing them out with a specific format and doing constrains in our API.

And since we make this as a dedicate module, we can easily improve it in the future when we have a better solution.

Works

  • Standardize the API
  • Documents

With basic structures, a basic global function, and basic documents.
@lilingxi01 lilingxi01 added official A case or issue from official crew or team. development Related to the development stuff. labels Aug 1, 2021
@lilingxi01 lilingxi01 changed the title [DWarning] The final build of DefinedWarning [DWarning] The final build of Warning Module Aug 1, 2021
Copy link
Member Author

@lilingxi01 lilingxi01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Related to the development stuff. official A case or issue from official crew or team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant