| <= previous | ^ top | next => |
The second type of customization is in defining new error handlers. To do this add a new method to class CheckErr in ecpErr.py . It should be of the form def Err_Name(self, Param, Data):. If there is an error the first character of the return should be a pipe (|) followed be an error message. If there is no error found, the return should be the data itself. Error checking is called with Python's exec function so use the name in the ParamList. You should lastly add lines like
elif string.upper(Type) == 'Err_Name':
self.ER = 0 # Returned for no errors in Param definition, add stuff to check for errors in definition too (return 1 for errors)
to the Check method of class CheckParam:
| <= previous | ^ top | next => |