StateVarError instances
The StateVarError object is used as a state variable error value. It extends the JavaScript Error class. When a StateVarError instance is used in a computation, it resolves to the value of this.cause.errorValue if it exists or NAN otherwise. When used as a String, it resolves to this.message.
There are several predefined instances of StateVarError. See Predefined StateVarError instances
new StateVarError()
new StateVarError(message)
new StateVarError(message, options)
new StateVarError(message, fileName)
new StateVarError(message, fileName, lineNumber)
The StateVarError constructor takes the same parameters as the JavaScript Error constructor.
valueOf()valueOf()
Returns the value of this.cause.errorValue if it exists or NaN otherwise.
toString()toString()
Returns the value of this.message.
StateVarError instancesINVALID_NONE''.'-'.INVALID_VALUE''.'<span class="svError">Invalid</>'.INVALID_POH''.'<span style="color:red;text-decoration: line-through">POH</>'.