Serializer.errorCallback

This callback will be called when an unexpected event occurs, i.e. an expected element is missing in the deserialization process.

  1. ErrorCallback errorCallback()
    class Serializer
    errorCallback
    ()
  2. ErrorCallback errorCallback(ErrorCallback errorCallback)

Examples

auto archive = new XmlArchive!();
auto serializer = new Serializer(archive);
serializer.errorCallback = (SerializationException exception) {
    writeln(exception);
    throw exception;
};

Meta