Jump to content
McKay Development

Is there an example of what the err object looks like?


Recommended Posts

Posted

Wanting to know what it looks like for Steam Comm and Trade Offer Manager, so when certain errors happen I can handle them properly. Thanks!

 

Ps: If this is documented somewhere my apologizes. 

Posted

You can always use: console.log(err); to see what kind error is it.

 

Sometimes the error will show number (enums), this might help

For example, I want to handle error from EResult "Fail" (Code: 2), so the code is something like this..

//.. some code here

if (stuff == SteamUser.EResult.Fail) {
      //handle code here
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...