Inventor API exceptions list/List of exceptions for each API call?

Inventor API exceptions list/List of exceptions for each API call?

pockyti
Contributor Contributor
496 Views
1 Reply
Message 1 of 2

Inventor API exceptions list/List of exceptions for each API call?

pockyti
Contributor
Contributor

Hello!

 

I'm trying to teach my colleagues better use of Try/Catch in visual studio. The only problem is I'd love to be able to give them a reference for what each method they're calling in the API can throw, so that they can look up what that means and how to handle that exception.

 

Does this exist? I've looked through the documentation and searched the forums. Surely there's a better way than just running code and when an exception occurs adding a handler for that specific one? I'd like to do some preventative catches and I can only do that if I know what can be thrown.

0 Likes
Accepted solutions (1)
497 Views
1 Reply
Reply (1)
Message 2 of 2

chandra.shekar.g
Autodesk Support
Autodesk Support
Accepted solution

@pockyti,

 

There are several list of exceptions. Out of that, important exceptions are listed below.

 

  1. Invalid argument. Like Item[nonexist name], or argument type is incorrect.
  2. Not implemented.
  3. Not initialized.
  4. Normal failure. Like UI does not support neither.

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes