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

com.frostwire.jlibtorrent.alerts.I2pAlert 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.i2p_alert;

/**
 * this alert is used to report errors in the i2p SAM connection.
 *
 * @author gubatron
 * @author aldenml
 */
public final class I2pAlert extends AbstractAlert {

    public I2pAlert(i2p_alert alert) {
        super(alert);
    }

    /**
     * the error that occurred in the i2p SAM connection.
     *
     * @return
     */
    public ErrorCode getError() {
        return new ErrorCode(alert.getError());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy