Function to set a specific error message during the simulation for the current block. If it is used, then after the execution of the computational function of the block, the simulator will end and will return the error message specified in argument.
Coserror(errmsg)