File tree Expand file tree Collapse file tree 4 files changed +6
-8
lines changed
backend/spring-boot/src/main/java/org/bugzkit/api/shared
docs/src/content/how-it-works Expand file tree Collapse file tree 4 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 66import org .bugzkit .api .auth .security .JWTFilter ;
77import org .bugzkit .api .auth .security .UserDetailsServiceImpl ;
88import org .bugzkit .api .shared .constants .Path ;
9- import org .bugzkit .api .shared .error .handling . CustomAuthenticationEntryPoint ;
9+ import org .bugzkit .api .shared .error .CustomAuthenticationEntryPoint ;
1010import org .springframework .context .annotation .Bean ;
1111import org .springframework .context .annotation .Configuration ;
1212import org .springframework .http .HttpMethod ;
Original file line number Diff line number Diff line change 1- package org .bugzkit .api .shared .error . handling ;
1+ package org .bugzkit .api .shared .error ;
22
33import com .google .common .net .HttpHeaders ;
44import jakarta .servlet .http .HttpServletRequest ;
55import jakarta .servlet .http .HttpServletResponse ;
66import java .io .IOException ;
77import java .util .UUID ;
88import lombok .extern .slf4j .Slf4j ;
9- import org .bugzkit .api .shared .error .ErrorMessage ;
109import org .bugzkit .api .shared .message .service .MessageService ;
1110import org .slf4j .MDC ;
1211import org .springframework .http .HttpStatus ;
Original file line number Diff line number Diff line change 1- package org .bugzkit .api .shared .error . handling ;
1+ package org .bugzkit .api .shared .error ;
22
33import jakarta .annotation .Nonnull ;
44import lombok .extern .slf4j .Slf4j ;
5- import org .bugzkit .api .shared .error .ErrorMessage ;
65import org .bugzkit .api .shared .error .exception .BadRequestException ;
76import org .bugzkit .api .shared .error .exception .ConflictException ;
87import org .bugzkit .api .shared .error .exception .ResourceNotFoundException ;
3029
3130@ Slf4j
3231@ ControllerAdvice
33- public class CustomExceptionHandler extends ResponseEntityExceptionHandler {
32+ public class GlobalExceptionHandler extends ResponseEntityExceptionHandler {
3433 private final MessageService messageService ;
3534
36- public CustomExceptionHandler (MessageService messageService ) {
35+ public GlobalExceptionHandler (MessageService messageService ) {
3736 this .messageService = messageService ;
3837 }
3938
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ These constants are what get sent to the frontend.
4444
4545#### Exception Handler
4646
47- ` CustomExceptionHandler ` is a ` @ControllerAdvice ` that catches all exceptions and converts them into a consistent response format:
47+ ` GlobalExceptionHandler ` is a ` @ControllerAdvice ` that catches all exceptions and converts them into a consistent response format:
4848
4949``` json
5050{
You can’t perform that action at this time.
0 commit comments