Archive.errorCallback

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

  1. ErrorCallback errorCallback()
    interface Archive
    errorCallback
    ()
  2. ErrorCallback errorCallback(ErrorCallback errorCallback)

Examples

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

Meta