ArchiveBase.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()
    class ArchiveBase(U)
    ErrorCallback
    errorCallback
    ()
  2. ErrorCallback errorCallback(ErrorCallback errorCallback)

Examples

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

Meta