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 example of how to use custom error #67

Merged
merged 1 commit into from Mar 25, 2023

Conversation

henrikac
Copy link
Contributor

This PR adds an example of how to use a custom error.

I have never used these custom errors before myself because I never really figured out how to use them. It is not clear from the documentation that you have to set the status_code and then raise Kemal::Exceptions::CustomException and I only found out about this because I saw this issue kemalcr/kemal#622 the other day.

Copy link
Member

@sdogruyol sdogruyol left a comment

Choose a reason for hiding this comment

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

Thanks a lot @henrikac 🙏

@sdogruyol sdogruyol merged commit 986e1b9 into kemalcr:master Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants