Search in sources :

Example 6 with FritzBoxInitializationException

use of de.janrufmonitor.fritzbox.firmware.exception.FritzBoxInitializationException 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

FritzBoxInitializationException (de.janrufmonitor.fritzbox.firmware.exception.FritzBoxInitializationException)6 CreateSessionIDException (de.janrufmonitor.fritzbox.firmware.exception.CreateSessionIDException)3 FritzBoxDetectFirmwareException (de.janrufmonitor.fritzbox.firmware.exception.FritzBoxDetectFirmwareException)3 InvalidSessionIDException (de.janrufmonitor.fritzbox.firmware.exception.InvalidSessionIDException)3 Message (de.janrufmonitor.exception.Message)2 FritzBoxLoginException (de.janrufmonitor.fritzbox.firmware.exception.FritzBoxLoginException)2 FritzBoxNotFoundException (de.janrufmonitor.fritzbox.firmware.exception.FritzBoxNotFoundException)2 DeleteCallListException (de.janrufmonitor.fritzbox.firmware.exception.DeleteCallListException)1 DeleteCallerException (de.janrufmonitor.fritzbox.firmware.exception.DeleteCallerException)1 DoBlockException (de.janrufmonitor.fritzbox.firmware.exception.DoBlockException)1 DoCallException (de.janrufmonitor.fritzbox.firmware.exception.DoCallException)1 GetAddressbooksException (de.janrufmonitor.fritzbox.firmware.exception.GetAddressbooksException)1 GetBlockedListException (de.janrufmonitor.fritzbox.firmware.exception.GetBlockedListException)1 GetCallListException (de.janrufmonitor.fritzbox.firmware.exception.GetCallListException)1 GetCallerImageException (de.janrufmonitor.fritzbox.firmware.exception.GetCallerImageException)1 GetCallerListException (de.janrufmonitor.fritzbox.firmware.exception.GetCallerListException)1 SetCallerException (de.janrufmonitor.fritzbox.firmware.exception.SetCallerException)1 IOException (java.io.IOException)1 UnsupportedEncodingException (java.io.UnsupportedEncodingException)1 ParseException (java.text.ParseException)1