Mini thought: How to handle non-issue (clinet) exceptions in spring boot

  • Thread starter Thread starter Clayton Walker
  • Start date Start date
C

Clayton Walker

Guest
If you find yourself writing your own exception handlers, you might have also found yourself manually filtering out 'known-good' exceptions, such as exceptions caused by clients disconnection.

No sense in replicating spring's existing filter, just use DisconnectedClientHelper.isClientDisconnectedException) in your @ControllerAdvice or @ExceptionHandler.

Continue reading...
 


Join 𝕋𝕄𝕋 on Telegram
Channel PREVIEW:
Back
Top