creating differents types of error in wgrid, parseerror and error