yyqdbngt opened a new pull request, #3403:
URL: https://github.com/apache/rocketmq-dashboard/pull/3403

   ### Summary
   
   `GlobalExceptionHandler` maps many exception families to status-specific 
`Result` envelopes, but the suite only exercised business errors, LLM gateway 
failures, 405, 406 and the unmapped-route 404 path.
   
   ### Changes
   
   - `UnsupportedOperationException` returns 501 instead of falling into the 
generic 500
   - Unexpected runtime exceptions return a generic 500 envelope without 
leaking the exception message
   - `PrometheusException` preserves the upstream status code and message in 
the response body
   - `MethodArgumentNotValidException` reports the first field error, falling 
back to a fixed message when the default message is absent
   - `ConstraintViolationException` reports the first violation message
   - `HttpMessageNotReadableException` and the generic catch-all are covered 
directly
   
   ### Testing
   
   `mvn test -Dtest=GlobalExceptionHandlerTest` passes: 14 tests, 0 failures 
(up from 7).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to