Skip to content
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

Add custom Error classes #2

Open
Kero76 opened this issue Jan 11, 2020 · 3 comments
Open

Add custom Error classes #2

Kero76 opened this issue Jan 11, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@Kero76
Copy link
Owner

Kero76 commented Jan 11, 2020

🚀 feature request

Revelant Package

New modules for custom Errors and affect all methods who throws an Error.

Description

Currently, the lib throw only Error class when an error occur in project.
So to manage more properly the error, it will be more interesting to create custom error with a message and a specific error code to improve the user-friendliness of the library in other project.

Describe the solution you'd like

Create some new classes who extends the Error class.

@Kero76 Kero76 added this to the 0.5 Iteration Plan milestone Jan 11, 2020
@madzinah
Copy link
Collaborator

Could it be possible to create a catalog to order and categorize Errors ?

@Kero76
Copy link
Owner Author

Kero76 commented Jan 12, 2020

A catalog ? Like an enum for example ?

@Kero76 Kero76 added the enhancement New feature or request label Jan 12, 2020
@madzinah
Copy link
Collaborator

It could be an enum, multiples enums in Category Classes or not an enum.
I think the important thing is to have a readable documentation to help users understand the errors more easily and describe accurately issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants