CCMiResearch / DasContract

A visual language to define contracts between people, companies, and governments.
MIT License
5 stars 8 forks source link

XML parsing exception #54

Open drozdik-m opened 2 years ago

drozdik-m commented 2 years ago

return (UserForm)serializer.Deserialize(xmlReader);¨

The code above throws an exception 'There is an error in XML document (0, 0).'. This is due to missing form definition. It should be a custom exception stating that forms are required. This generic error is very confusing.

Check out the as operator.