ByteCode.News
Submit RSS Atom Sign in

Back to the channels

#java

  1. * kathadris joined #java
  2. * Chai-T-Rex joined #java
  3. * Anaphaxeton joined #java
  4. * Anaphaxeton joined #java
  5. * rvalue joined #java
  6. * WizJin joined #java
  7. * stfstfm joined #java
  8. * rvalue joined #java
  9. * sponkz joined #java
  10. * leppard joined #java
  11. * iwtga joined #java
  12. * MikeBux joined #java
  13. * metalmaniac joined #java
  14. * ghodawalaaman joined #java
  15. * domicron joined #java
  16. * jreicher joined #java
  17. * SJrX joined #java
  18. * iwtga joined #java
  19. * noord joined #java
  20. * Anaphaxeton joined #java
  21. * noord joined #java
  22. * iwtga joined #java
  23. * MikeBux joined #java
  24. * stfstfm_ joined #java
  25. * stfstfm joined #java
  26. * stfstfm joined #java
  27. * stfstfm_ joined #java
  28. * stfstfm joined #java
  29. * hwpplayer1 joined #java
  30. * stfstfm joined #java
  31. * stfstfm joined #java
  32. * stfstfm joined #java
  33. * kcomhnall joined #java
  34. * stfstfm_ joined #java
  35. * Betal joined #java
  36. * acidjnk_new3 joined #java
  37. * kathadris joined #java
  38. * jwisbell35 joined #java
  39. * hwpplayer1 joined #java
  40. * noord joined #java
  41. * GreenResponse joined #java
  42. acidjnk hello - in my Spring Boot application, I want to have defensive code in the @ControllerAdvice inheriting from ResponseEntityExceptionHandler for "can't happen" situations. Like an actual bug that causes an unexpected exception, forgotten validation of client data. Would you rather make a unit test with mocking, or add a special endpoint class only to src/test that generates all exceptions needed for @SpringBootTest?
  43. * jamezp joined #java
  44. * mwnaylor joined #java
  45. sonOfRa I wouldn't write a test for this thing, I would just assume that whatever Spring gives you for unhandled exception handling actually works
  46. * WizJin joined #java
  47. acidjnk I find that unsatisfying for clients, like an Angular or React application, for example. They need to rely on an API contract, e. g. that I provide certain fields in the response object so they can display the proper error message.
  48. acidjnk Although could argue that the client should expect 500 and so something proper with it, no matter what else it contains.
  49. * ztevoz joined #java
  50. * hwpplayer1 joined #java
  51. * overholts009 joined #java
  52. * mwnaylor joined #java
  53. ernimril acidjnk, there are typically many things between your server and the client all of them can crash or rewrite the content....
  54. ernimril acidjnk, a client that does not handle 500 responses is not a good client
  55. * gurrkin joined #java
  56. * Anaphaxaway joined #java
  57. * sponkz joined #java
  58. * mindCrime joined #java
  59. * magla joined #java
  60. * bdkl joined #java
  61. * Ragnor joined #java
  62. * ne555 joined #java
  63. * tomaw_ joined #java
  64. * mwnaylor joined #java
  65. * leppard joined #java
  66. * domicron7 joined #java
  67. * metalmaniac joined #java
  68. * viju joined #java
  69. * jjakob joined #java
  70. * acidjnk_new joined #java
  71. * JurassCZ joined #java
  72. * lucerne90 joined #java
  73. acidjnk this is not really readable, is it? https://pastebin.com/6KyRWJ9L elegant in a way, but with Java syntax, not clear that it is a simple carthesian product of (GET,PUT)x(thing1,thing2,thing3,...)
  74. * skum joined #java
  75. * Anaphaxaway joined #java