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
So i'm implementing some kind of persistency system, and i'd like to be able to differentiate between Buffer Underflows from other kind of exceptions, which are treated differently.
If possible it would be awesome if those exception could be differentiated, perhaps with a subclass of KryoException like BufferUnderflowKryoException, so they can be catched separatedly.
Currently i'm checking the message of the exception (if(e.getMessage().contains("Buffer underflow")) but it's far from ideal.
As an alternative an error code could be added, but i think it's more work and less idiomatic.