All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.frostwire.jlibtorrent.alerts.MetadataFailedAlert Maven / Gradle / Ivy

There is a newer version: 1.2.0.18
Show newest version
package com.frostwire.jlibtorrent.alerts;

import com.frostwire.jlibtorrent.ErrorCode;
import com.frostwire.jlibtorrent.swig.metadata_failed_alert;

/**
 * This alert is generated when the metadata has been completely received and the info-hash
 * failed to match it. i.e. the metadata that was received was corrupt. libtorrent will
 * automatically retry to fetch it in this case. This is only relevant when running a
 * torrent-less download, with the metadata extension provided by libtorrent.
 *
 * @author gubatron
 * @author aldenml
 */
public final class MetadataFailedAlert extends TorrentAlert {

    MetadataFailedAlert(metadata_failed_alert alert) {
        super(alert);
    }

    /**
     * The error that occurred.
     *
     * @return
     */
    public ErrorCode getError() {
        return new ErrorCode(alert.getError());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy