Package be.ehealth.technicalconnector.utils

# Class ConnectorExceptionUtils

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

public final class ConnectorExceptionUtils extends Object
Utility class that handles specific errors.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `processSOAPFault(jakarta.xml.ws.soap.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 Details

  - ### processSOAPFault

    public static void processSOAPFault(jakarta.xml.ws.soap.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`