com.frostwire.jlibtorrent.alerts.SessionErrorAlert Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jlibtorrent Show documentation
Show all versions of jlibtorrent Show documentation
A swig Java interface for libtorrent by the makers of FrostWire.
package com.frostwire.jlibtorrent.alerts;
import com.frostwire.jlibtorrent.ErrorCode;
import com.frostwire.jlibtorrent.swig.session_error_alert;
/**
* This alert is posted when the session encounters a serious error,
* potentially fatal.
*
* @author gubatron
* @author aldenml
*/
public final class SessionErrorAlert extends AbstractAlert {
SessionErrorAlert(session_error_alert alert) {
super(alert);
}
/**
* The error code, if one is associated with this error.
*
* @return the error
*/
public ErrorCode error() {
return new ErrorCode(alert.getError());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy