public function createException(\Exception $e, $soapFunction, $input)
    {
        if (! ($e instanceof ExecutorException)) {
            return $e;
        }

        $e = $e->getPrevious();
        if ($e instanceof \SoapFault) {
            switch ($e->faultcode) {
                default:
                    throw InvalidInputDataException::createExceptionFromSoapFault($e);
            }
        }

        return $e;
    }
public function createException(\Exception $e, $soapFunction, $input)
    {
        if (! ($e instanceof ExecutorException)) {
            return $e;
        }

        $e = $e->getPrevious();
        if ($e instanceof \SoapFault) {
            switch ($e->faultcode) {
                default:
                    throw InvalidInputDataException::createExceptionFromSoapFault($e);
            }
        }

        return $e;
    }
public function createException ( \ Exception $ e , $ soapFunction , $ input ) { if ( ! ( $ e instanceof ExecutorException ) ) { return $ e ; } $ e = $ e -> getPrevious ( ) ; if ( $ e instanceof \ SoapFault ) { switch ( $ e -> faultcode ) { default : throw InvalidInputDataException :: createExceptionFromSoapFault ( $ e ) ; } } return $ e ; }
Wraps exception to API's type

@param \Exception $e
@param string $soapFunction
@param $input
@return \Exception
Wraps exception to API s type