SoapFault
class SoapFault extends Exception (View source)
Represents a SOAP fault.
Properties
protected | $message | The error message |
from Exception |
protected | $code | The error code |
from Exception |
protected | $file | The filename where the error happened |
from Exception |
protected | $line | The line where the error happened |
from Exception |
string | $faultcode | ||
string | $faultstring | ||
string | $faultactor | ||
mixed | $detail | ||
string | $faultname | ||
mixed | $headerfault | ||
string|null
Since: 8.1
|
$faultcodens | ||
string|null
Since: 8.1
|
$_name |
Methods
__construct(int $code, string $string, string $actor = null, mixed $details = null, string $name = null, mixed $headerFault = null)
SoapFault constructor
string
__toString()
Obtain a string representation of a SoapFault
SoapFault(string $faultcode, string $faultstring, string $faultactor = null, string $detail = null, string $faultname = null, mixed $headerfault = null)
SoapFault constructor
Details
__construct(int $code, string $string, string $actor = null, mixed $details = null, string $name = null, mixed $headerFault = null)
Since: 5.0.1
SoapFault constructor
final string
getMessage()
Gets the Exception message
final int
getCode()
Gets the Exception code
final string
getFile()
Gets the file in which the exception occurred
final int
getLine()
Gets the line in which the exception occurred
final array
getTrace()
Gets the stack trace
final null|Throwable
getPrevious()
Returns previous Exception
final string
getTraceAsString()
Gets the stack trace as a string
string
__toString()
Since: 5.0.1
Obtain a string representation of a SoapFault
void
__wakeup()
No description
SoapFault(string $faultcode, string $faultstring, string $faultactor = null, string $detail = null, string $faultname = null, mixed $headerfault = null)
Since: 5.0.1
SoapFault constructor