This callback will be called when an unexpected event occurs, i.e. an expected element is missing in the deserialization process.
auto archive = new XmlArchive!(); auto serializer = new Serializer(archive); serializer.errorCallback = (SerializationException exception) { writeln(exception); throw exception; };
See Implementation
This callback will be called when an unexpected event occurs, i.e. an expected element is missing in the deserialization process.