Search in sources :

Example 6 with ConnectionFailureException

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);
}
Also used : ConnectionFailureException(org.opensmartgridplatform.shared.exceptionhandling.ConnectionFailureException)

Aggregations

ConnectionFailureException (org.opensmartgridplatform.shared.exceptionhandling.ConnectionFailureException)6 JAXBException (javax.xml.bind.JAXBException)3 Result (javax.xml.transform.Result)3 FunctionalException (org.opensmartgridplatform.shared.exceptionhandling.FunctionalException)3 TechnicalException (org.opensmartgridplatform.shared.exceptionhandling.TechnicalException)3 SoapFaultDetail (org.springframework.ws.soap.SoapFaultDetail)3 IOException (java.io.IOException)2 InetAddress (java.net.InetAddress)1 ClientConnectionBuilder (org.openmuc.j60870.ClientConnectionBuilder)1 Connection (org.openmuc.j60870.Connection)1 ClientConnection (org.opensmartgridplatform.adapter.protocol.iec60870.domain.services.ClientConnection)1 DeviceConnection (org.opensmartgridplatform.adapter.protocol.iec60870.domain.valueobjects.DeviceConnection)1 DeviceResponse (org.opensmartgridplatform.adapter.protocol.oslp.elster.device.DeviceResponse)1 EmptyDeviceResponse (org.opensmartgridplatform.adapter.protocol.oslp.elster.device.responses.EmptyDeviceResponse)1 GetConfigurationDeviceResponse (org.opensmartgridplatform.adapter.protocol.oslp.elster.device.responses.GetConfigurationDeviceResponse)1 GetFirmwareVersionDeviceResponse (org.opensmartgridplatform.adapter.protocol.oslp.elster.device.responses.GetFirmwareVersionDeviceResponse)1 GetStatusDeviceResponse (org.opensmartgridplatform.adapter.protocol.oslp.elster.device.responses.GetStatusDeviceResponse)1