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

Implement concrete error #32

Closed
wants to merge 4 commits into from
Closed

Implement concrete error #32

wants to merge 4 commits into from

Conversation

al8n
Copy link
Contributor

@al8n al8n commented Nov 6, 2023

This PR implements a concrete error but still uses a Box<dyn Error> in an enum variant. I am thinking we can also write a macro to generate an error for the Services, so that we can distinguish which service produces the error.

@al8n al8n added the enhancement New feature or request label Nov 6, 2023
@al8n al8n self-assigned this Nov 6, 2023
Copy link
Collaborator

@danielSanchezQ danielSanchezQ left a comment

Choose a reason for hiding this comment

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

Cargo lock was added newly here?

@@ -38,6 +38,9 @@ pub enum Error {
#[error("Service {service_id} is unavailable")]
Unavailable { service_id: ServiceId },

#[error("Service id must be unique, but find a duplicated id: {service_id}")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo: found

@al8n al8n closed this Apr 16, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants