Zend\Soap\Server::fault
Generate a server fault
Note that the arguments are reverse to those of SoapFault. If an exception is passed as the first argument, its message and code will be used to create the fault object if it has been registered via {@Link registerFaultException()}.
Signature
public function fault([Exception
$fault = null,
[string
$code = 'Receiver']] )
Parameters
$fault
— object
$code
— string- SOAP Fault Codes
Returns
- SoapFault