Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C# - Add more error information #90

Open
Nixarn opened this issue Feb 3, 2022 · 0 comments
Open

C# - Add more error information #90

Nixarn opened this issue Feb 3, 2022 · 0 comments

Comments

@Nixarn
Copy link

Nixarn commented Feb 3, 2022

When Nakama throws an exception it would be useful to get more information about the exception. At the moment the only way you can do it is by doing a string comparison on the exception message.

For example when you join a match with an invalid match id, the nakama server return error code 3 (bad input) but the .net client library does not pass on this information. The error code you get in this case is 60 (but you do get the error message "Invalid match ID") and there's no way to look up what that code means.

@lugehorsam lugehorsam added the C# label Sep 21, 2022
@lugehorsam lugehorsam changed the title Add more error information C# - Add more error information Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants