# raiseError(message,code)

Provides a callable Raise Error capability.

Function only- no corresponding object

### Syntax

o_raiseError(message,code)
  message: scalar text - error message to be displayed
  code: int16 scalar - error code to be displayed
  return: none

### Usage

VEE natively provides a Raise Error object for user-defined error states. This is used to inform user of the error and to halt execution. This function encapsulates the Raise Error object in a function so that it can be called in formulas or anywhere else.

### Location

menu: no menu pick - to access use the Function and Object browser

library: sysLib

### Example

A formula with

A=10;(A<=9?"you did well": o_raiseError("you messed up",666) )

raises an error and halts operation since A is out of a defined range.

### Notes

### Reference

### Dependencies

none

### Supported On

VEE 7.0+, all platforms

### See Also

© 2015-2021. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 09 August 2021 18:25.