ucSetError

 

See Also: ucError, ucErrorMessage, Error Handling

 

Raises an error in a callback routine.

 

ucError(ErrorNumber [,tHandle])

 

Parameters

 

ErrorNumber

Required.  This number corresponds with the error you want to raise.  It can be either a user-configured numerical value greater than 100, or one of the following constants:

 

uc_Err_None

uc_Err_Syntax_Error

uc_Err_Undefined_Identifier

uc_Err_Unknown_Error

uc_Err_Unrecognized_Pattern

uc_Err_Unrecognized_Command

uc_Err_Datatype_Mismatch

uc_Err_Invalid_Argument_Count

uc_Err_Invalid_Definition

uc_Err_CodeBlock_Error

uc_Err_Undefined_Callback

uc_Err_Array_Bounds_Exceeded

uc_Err_Float_Denormal_Operand

uc_Err_Float_Divide_By_Zero

uc_Err_Float_Inexact_Result

uc_Err_Float_Invalid_Operation

uc_Err_Float_Overflow

uc_Err_Float_Stack_Check

uc_Err_Float_Underflow

uc_Err_Integer_Divide_By_Zero

uc_Err_Integer_Overflow

uc_Err_Privileged_Instruction

 

tHandle

Optional.  Each thread has its own definitions, and keeps separate track of its errors.  By specifying this argument, you can select which thread to raise the error in.  If no thread is specified, the default thread is implied.

 

Remarks

 

In this version, there is an optional argument for the thread handle.  You should always use this argument if your callback receives a thread handle.  If no thread is specified, the default thread is implied.