ConFoo: Call for paper is now Open


(PHP 5 >= 5.0.1)

SoapFault::__constructConstructeur SoapFault


SoapFault::__construct ( string $faultcode , string $faultstring [, string $faultactor [, string $detail [, string $faultname [, string $headerfault ]]]] )

Cette fonction est un alias de : SoapFault::SoapFault()

add a note add a note

User Contributed Notes 1 note

csnaitsirch at web dot de
4 years ago
The first Parameter of the constructor, the faultcode, of SoapFault must be a string. Otherwise it will lead to an error.

throw new SoapFault(1, "Error message!"); // wrong
throw new SoapFault("1", "Error message!"); // right
To Top