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()
  2. ErrorCallback errorCallback(ErrorCallback errorCallback)
    interface Archive

Examples

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

Meta