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 message support to Kemal::Exceptions::CustomException #671

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

sdogruyol
Copy link
Member

SSIA

@sdogruyol sdogruyol merged commit bb9105f into master Feb 1, 2024
8 checks passed
@straight-shoota straight-shoota deleted the custom-exception-message branch February 1, 2024 11:27
Comment on lines +16 to +18
def initialize(context : HTTP::Server::Context, message : String = "")
@context = context
@message = message
Copy link
Contributor

Choose a reason for hiding this comment

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

To be correct this IMO should call super message instead of directly setting the @ivar.
Also, message should be nil-able, as in Exception.new constructor.

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