use of org.opensmartgridplatform.shared.exceptionhandling.ConnectionFailureException in project open-smart-grid-platform by OSGP.
the class Iec61850DeviceResponseHandler method handleConnectionFailure.
/*
* (non-Javadoc)
*
* @see org.opensmartgridplatform.adapter.protocol.iec61850.device.
* DeviceResponseHandler #handleConnectionFailure(java.lang.Throwable,
* org.opensmartgridplatform.adapter.protocol.iec61850.device.
* DeviceResponse)
*/
@Override
public void handleConnectionFailure(final Throwable t, final DeviceResponse deviceResponse) throws JMSException {
Objects.requireNonNull(t, "handleConnectionFailure() Throwable t may not be null");
final ConnectionFailureException connectionFailureException = new ConnectionFailureException(ComponentType.PROTOCOL_IEC61850, t.getMessage());
this.messageProcessor.checkForRedelivery(this.messageMetadata, connectionFailureException, this.domainInformation, this.jmsxDeliveryCount);
}
Aggregations