be.ehealth.technicalconnector.utils
Class ConnectorExceptionUtils

java.lang.Object
  extended by be.ehealth.technicalconnector.utils.ConnectorExceptionUtils

public final class ConnectorExceptionUtils
extends Object

Utility class that handles specific errors.


Method Summary
static void processSOAPFault(SOAPFaultException e)
          Utility method that process the SOAPFaultException and translate it to SoaErrorException or SOAPFaultException.
static byte[] processUnsealConnectorException(UnsealConnectorException e, String... allowedErrors)
          Utility method that handles UnsealConnectorException by ignoring a Array of allowedErrors.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processSOAPFault

public static void processSOAPFault(SOAPFaultException e)
                             throws SoaErrorException
Utility method that process the SOAPFaultException and translate it to SoaErrorException or SOAPFaultException.

Parameters:
e -
Throws:
SoaErrorException

processUnsealConnectorException

public static byte[] processUnsealConnectorException(UnsealConnectorException e,
                                                     String... allowedErrors)
                                              throws TechnicalConnectorException
Utility method that handles UnsealConnectorException by ignoring a Array of allowedErrors.

If an empty array is passed all errors are ignored.

Throws:
TechnicalConnectorException



Connector Packaging TECHNICAL 3.24.0-beta-4 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.