viException: Custom Number Range

Is there a defined number range for custom viExceptions?

I want to throw a custom exception in a script and later catch that specific one. Matching by number is more reliant than matching the message, but only if the number does not clash with an existing one.

Parents
  • There is no official guideline. But the exception numbers are based on the following scheme. The first 4 digits are unique to the internal product. For example. errors starting with 0810 stands for VI.DB.dll. The last 4 digits are running from 0000 to 9999 and are assigned sequentially by a tool.

    This means you should be pretty safe when using a high 4-digit number as the leading 4-digit. For example, using numbers from 99990000 to 99999999 would be a good choice.

Reply
  • There is no official guideline. But the exception numbers are based on the following scheme. The first 4 digits are unique to the internal product. For example. errors starting with 0810 stands for VI.DB.dll. The last 4 digits are running from 0000 to 9999 and are assigned sequentially by a tool.

    This means you should be pretty safe when using a high 4-digit number as the leading 4-digit. For example, using numbers from 99990000 to 99999999 would be a good choice.

Children
No Data