Skip to content

Changed how exceptions are handled in InstantBook #260

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

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

tuj
Copy link
Contributor

@tuj tuj commented Aug 6, 2025

Link to issue

#257

Link to ticket

https://leantime.itkdev.dk/#/tickets/showTicket/4992

Description

Exceptions are not handled correctly for the InstantBook feature. This results in 500 errors.
This PR aims to handle the exceptions in a better way.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@tuj tuj self-assigned this Aug 6, 2025
@tuj tuj added the bug Something isn't working label Aug 6, 2025
@turegjorup
Copy link
Contributor

Take a look at using Exception to status

The framework also allows you to configure the HTTP status code sent to the clients when custom exceptions are thrown on an API Platform resource operation.

This can potentially save some code in the controller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants