cancel
Showing results for 
Search instead for 
Did you mean: 

NXException

Builder
Builder

When an NXException is thrown and caught.

How do you detemine what the error code means?

4 REPLIES

Re: NXException

Siemens Phenom Siemens Phenom
Siemens Phenom

The NXException object has a Message property that contains the error message.

Re: NXException

Builder
Builder
There is a method that takes the Error code and prints out the associated string.
That is what I am looking for.

Re: NXException

Phenom
Phenom

The UF function is:

 

UF_get_fail_message (view source)
 

Defined in: uf.h
 
Overview
Returns the message string associated with an error code.

Environment
Internal and External
 
Required License(s)
gateway


 

int UF_get_fail_message
(
int fail_code,
char message [ 133 ]
)
intfail_codeInputthe failure code to translate
charmessage [ 133 ]Outputthe message corresponding to the fail code
Graham Inchley Snr R&D Engineer (Systems Development), Sandvik Coromant
Lenovo ThinkPad W540, Win7, 16GB. Developing in: Java | C | C# | KF
Production: NX8.5.3.3 MP11 64bit Testing: NX9.0.2.5

Re: NXException

Valued Contributor
Valued Contributor
Hi InternBL,

if you are writing the code in vb.net use try and catch and in message box instead of-
msgbox(ex.message) you put-
msgbox(ex.tostring) , you will get the proper problem of it.

Regards,
Abhi