org.libtorrent4j.alerts.I2pAlert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libtorrent4j Show documentation
Show all versions of libtorrent4j Show documentation
A swig Java interface for libtorrent
The newest version!
package org.libtorrent4j.alerts;
import org.libtorrent4j.ErrorCode;
import org.libtorrent4j.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.
*
*
*/
public ErrorCode getError() {
return new ErrorCode(alert.getError());
}
}