MCPcopy Create free account
hub / github.com/sissaschool/xmlschema / decode_error

Method decode_error

xmlschema/validators/validation.py:303–318  ·  view source on GitHub ↗
(self,
                     validation: str,
                     validator: 'XsdValidator',
                     obj: Any,
                     decoder: Any,
                     error: Union[str, Exception])

Source from the content-addressed store, hash-verified

301 return self.raise_or_collect(validation, error)
302
303 def decode_error(self,
304 validation: str,
305 validator: 'XsdValidator',
306 obj: Any,
307 decoder: Any,
308 error: Union[str, Exception]) -> XMLSchemaValidationError:
309
310 error = XMLSchemaDecodeError(
311 validator=validator,
312 obj=obj,
313 decoder=decoder,
314 reason=str(error),
315 source=self.source,
316 namespaces=self.namespaces,
317 )
318 return self.raise_or_collect(validation, error)
319
320
321class DecodeContext(ValidationContext):

Callers 2

raw_decodeMethod · 0.80
raw_decodeMethod · 0.80

Calls 2

raise_or_collectMethod · 0.95

Tested by

no test coverage detected