Add attributes to PyComediError to make intelligent error handling easier.