Lines Matching full:defect
169 def handle_defect(self, obj, defect):
170 """Based on policy, either raise defect or call register_defect.
172 handle_defect(obj, defect)
174 defect should be a Defect subclass, but in any case must be an
175 Exception subclass. obj is the object on which the defect should be
177 defect is raised as an error, otherwise the object and the defect are
181 The email package parsers always call it with Defect instances.
185 raise defect
186 self.register_defect(obj, defect)
188 def register_defect(self, obj, defect):
189 """Record 'defect' on 'obj'.
193 defect handling. The default implementation calls the append method of
199 obj.defects.append(defect)