Repository navigation
refactor: Rework exception hierarchy for ServerpodClientException - #5560
Conversation
FXschwartz
left a comment
There was a problem hiding this comment.
#3283 mentions all client exceptions deriving from a common base. Do we also need to handle MethodStreamException family and ServerpodClientGetEndpointException?
marcelomendoncasoares
left a comment
There was a problem hiding this comment.
Few additional comments.
It does seem valuable to do that. |
|
@FXschwartz |
There was a problem hiding this comment.
All my comments have been addressed and pending @marcelomendoncasoares comments & CI failures being resolved it looks great to me.
…Exception from sealed chain
marcelomendoncasoares
left a comment
There was a problem hiding this comment.
LGTM! Only one minor nit on the text of the throw on TimeoutException, but already leaving it approved!
Reworks the exception hierarchy for
ServerpodClientExceptionand removes hacky way of dealing with network errors using -1 status code.Part of #3283
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.If you need help, consider asking for advice on the discussion board.
Breaking changes
ServerpodClientExceptionno longer has astatusCodefield.ServerpodClientNetworkExceptionis now thrown in place ofServerpodClientExceptionwith -1 statusCode.