How to capture all possible pyxb exceptions for CreateFromDocument(input_xml). Example:
try:
py_obj = CreateFromDocument(input_xml)
except pyxb.UnrecognizedContentError as e:
raise e
Here it captures only UnrecognizedContentError. But I want to capture all possible errors when I use CreateFromDocument. What is the correct Error class should I use from pyxb?
Thanks for your help.