Jump to content

Localized error messages with additional information


Recommended Posts

Good morning, guys.

 

What could be a good way for providing localized error messages with additional information? Like "File settings.ini was not found". Or is it better to build the error source like this:

 

 

*.vi

<ERR>File was not found

<APPEND>settings.ini

 

Localization would cut out the <err> part and translate it only, then append the additional information like file name.

 

Are those tags documented somewhere?

Link to comment

They're not formally documented anywhere AFAIK. You can figure them out pretty easily by inspecting "General Error Handler.vi". I would definitely try to make use of them so the native error functions work correctly on your enhanced error strings. NI's "Structured Error Handler" component uses them in similar fashion; you might be able to glean some direction from looking at its source, too. (I would link to SEH, but NI.com is down for maintenance.)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.