Error Cluster From Error Code function

From LabVIEW Wiki
Jump to: navigation, search
Object information
Owning palette(s) Dialog & User Interface palette
Type VI
Requires Basic Development Environment
Icon Dialog & User Interface Palette - Error Cluster From Error Code.png
Error Cluster From Error Code function

The Error Cluster From Error Code function builds an error cluster from an error code.

Uses

Set the input terminal error code to zero in order to return the value of the error in input terminal (no error by default). This is useful in situations where zero indicates a passed state.

Error Cluster From Error Code - Error 0.png

Set the input terminal error code to a non-zero value to generate an error if the status of the error in input terminal is false.

Error Cluster From Error Code - Non-Zero Error.png

Use the error message input terminal to specify a custom error message (empty by default).

Error Cluster From Error Code - Error With Error Message.png

Set show call chain? to true to include all callers in the error message.

Error Cluster From Error Code - Show Call Chain.png

Set is warning? to true to return a warning instead of an error. If there is already a warning at the error in input terminal, the value is left unchanged.

Error Cluster From Error Code - Is Warning.png

Best practice

  • Specify custom error messages to improve readability and help others understand what the error means.
  • Use custom error codes to avoid conflicts with default error codes.
  • Use different error codes for different errors in the application.

History

Version Change(s)
LabVIEW 8.20

See also

External links