Search in sources :

Example 1 with NoDeviceResponseException

use of com.alliander.osgp.shared.exceptionhandling.NoDeviceResponseException in project Protocol-Adapter-OSLP by OSGP.

the class OslpChannelHandlerClient method channelDisconnected.

@Override
public void channelDisconnected(final ChannelHandlerContext ctx, final ChannelStateEvent e) throws Exception {
    final int channelId = e.getChannel().getId();
    if (this.callbackHandlers.containsKey(channelId)) {
        this.callbackHandlers.get(channelId).getDeviceResponseHandler().handleException(new NoDeviceResponseException());
        this.callbackHandlers.remove(channelId);
    }
    super.channelDisconnected(ctx, e);
}
Also used : NoDeviceResponseException(com.alliander.osgp.shared.exceptionhandling.NoDeviceResponseException)

Aggregations

NoDeviceResponseException (com.alliander.osgp.shared.exceptionhandling.NoDeviceResponseException)1