You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have a MessageDecodingFailedException when the messenger's serializer fails decoding message. But we have not exception thrown when encoding fails.
I suggest to create a MessageEncodingFailedException.
(btw, Im currently writing a serializer)
The text was updated successfully, but these errors were encountered:
If my custom serializer fails to encode a message, then I have only \RuntimeException that I can throw.
Then transports can catch MessageEncodingFailedException to maybe try handle it. Ie, try a different serializer.
You can throw any exception. Currently SF messenger does not handle any exception when encoding. We should only add explicit exceptions if they are actually used in some way for a certain behavior. So I'm 👎 at the moment.
We currently have a
MessageDecodingFailedException
when the messenger's serializer fails decoding message. But we have not exception thrown when encoding fails.I suggest to create a
MessageEncodingFailedException
.(btw, Im currently writing a serializer)
The text was updated successfully, but these errors were encountered: