protected function getErrorFromFault(\SoapFault $fault)
    {
        $error = $this->getErrorByCode($fault->faultcode, $fault->faultstring);

        if (empty($error->getMessage())) {
            $error->setMessage(isset($fault->detail) ? $fault->detail->message : $fault->faultstring);
        }

        return $error;
    }
protected function getErrorFromFault(\SoapFault $fault)
    {
        $error = $this->getErrorByCode($fault->faultcode, $fault->faultstring);

        if (empty($error->getMessage())) {
            $error->setMessage(isset($fault->detail) ? $fault->detail->message : $fault->faultstring);
        }

        return $error;
    }
protected function getErrorFromFault ( \ SoapFault $ fault ) { $ error = $ this -> getErrorByCode ( $ fault -> faultcode , $ fault -> faultstring ) ; if ( empty ( $ error -> getMessage ( ) ) ) { $ error -> setMessage ( isset ( $ fault -> detail ) ? $ fault -> detail -> message : $ fault -> faultstring ) ; } return $ error ; }
Get error from Fault Exception.

@param \SoapFault $fault

@return Error
Get error from Fault Exception .