Exception handling #82
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/exception-handling"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR adds centralized exception handling with RFC 7807 Problem Details, aligning with https://gitea.dsv.su.se/DMC/api-spec/src/branch/main/daisy/grupprumsbokning.md
It introduces
StudentportalenExceptionas the abstract base exception class for all BFF errors. Each subclass defines:studentportalen:forbidden)Adds specific exception types:
ValidationException,ForbiddenException, andServiceUnavailableExceptionfor now.Implements
GlobalExceptionHandlerto convert exceptions to RFC 7807 format.Adds
spring-boot-starter-validationdependency for@ValidsupportDeployed to https://studentportalen-feature-exception-handling.branch.dsv.su.se
Checkout
From your project repository, check out a new branch and test the changes.