-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
apiAPI relatedAPI relatedcriticalCritical priority - must fix before productionCritical priority - must fix before productionerror-handlingError handling and exceptionsError handling and exceptions
Description
Problem
No consistent error handling:
- No @ControllerAdvice
- JwtAuthFilter silently swallows exceptions
- Inconsistent error responses
Solution
Create GlobalExceptionHandler with @RestControllerAdvice:
- Handle MethodArgumentNotValidException
- Handle AccessDeniedException
- Handle custom business exceptions
- Return structured ApiError responses
Files to Create
libs/common/.../ApiError.javaapps/backend/.../GlobalExceptionHandler.java- Custom exception classes
Files to Modify
JwtAuthFilter.java(fix exception handling)AuthController.java(structured responses)
Acceptance Criteria
- GlobalExceptionHandler with @RestControllerAdvice
- Structured error response format
- Consistent HTTP status codes
- Tests for error scenarios
Priority
🔴 Critical - Required for production operations
Metadata
Metadata
Assignees
Labels
apiAPI relatedAPI relatedcriticalCritical priority - must fix before productionCritical priority - must fix before productionerror-handlingError handling and exceptionsError handling and exceptions