Search in sources :

Example 6 with CreateSessionIDException

use of de.janrufmonitor.fritzbox.firmware.exception.CreateSessionIDException in project janrufmonitor by tbrandt77.

the class FritzOSFirmware method init.

public void init() throws FritzBoxInitializationException, FritzBoxNotFoundException, InvalidSessionIDException {
    try {
        this.createSessionID();
        this.m_firmware = this.detectFritzBoxFirmware();
    } catch (CreateSessionIDException e) {
        throw new FritzBoxInitializationException("FritzBox initialization failed: " + e.getMessage());
    } catch (FritzBoxDetectFirmwareException e) {
        throw new FritzBoxInitializationException("FritzBox initialization failed: " + e.getMessage());
    }
}
Also used : FritzBoxDetectFirmwareException(de.janrufmonitor.fritzbox.firmware.exception.FritzBoxDetectFirmwareException) FritzBoxInitializationException(de.janrufmonitor.fritzbox.firmware.exception.FritzBoxInitializationException) CreateSessionIDException(de.janrufmonitor.fritzbox.firmware.exception.CreateSessionIDException)

Example 7 with CreateSessionIDException

use of de.janrufmonitor.fritzbox.firmware.exception.CreateSessionIDException in project janrufmonitor by tbrandt77.

the class UnitymediaFirmware method init.

public void init() throws FritzBoxInitializationException, FritzBoxNotFoundException, InvalidSessionIDException {
    try {
        this.createSessionID();
        this.m_firmware = this.detectFritzBoxFirmware();
    } catch (CreateSessionIDException e) {
        throw new FritzBoxInitializationException("FritzBox initialization failed: " + e.getMessage());
    } catch (FritzBoxDetectFirmwareException e) {
        throw new FritzBoxInitializationException("FritzBox initialization failed: " + e.getMessage());
    }
}
Also used : FritzBoxDetectFirmwareException(de.janrufmonitor.fritzbox.firmware.exception.FritzBoxDetectFirmwareException) FritzBoxInitializationException(de.janrufmonitor.fritzbox.firmware.exception.FritzBoxInitializationException) CreateSessionIDException(de.janrufmonitor.fritzbox.firmware.exception.CreateSessionIDException)

Aggregations

CreateSessionIDException (de.janrufmonitor.fritzbox.firmware.exception.CreateSessionIDException)7 FritzBoxNotFoundException (de.janrufmonitor.fritzbox.firmware.exception.FritzBoxNotFoundException)4 IOException (java.io.IOException)4 UnsupportedEncodingException (java.io.UnsupportedEncodingException)4 ConnectException (java.net.ConnectException)4 FritzBoxDetectFirmwareException (de.janrufmonitor.fritzbox.firmware.exception.FritzBoxDetectFirmwareException)3 FritzBoxInitializationException (de.janrufmonitor.fritzbox.firmware.exception.FritzBoxInitializationException)3 Socket (java.net.Socket)2 UnknownHostException (java.net.UnknownHostException)2