# La clase SoapFault

(PHP 5, PHP 7, PHP 8)

## Introducción

Representa SOAP fault.

## Sinopsis de la Clase

class SoapFault extends Exception {
/* Propiedades heredadas */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Métodos */
__construct(
string `$faultcode`,
string `$faultstring`,
string `$faultactor` = ?,
string `$detail` = ?,
string `$faultname` = ?,
string `$headerfault` = ?
)
public __toString(): string
/* Métodos heredados */
final public Exception::getMessage(): string
final public Exception::getPrevious(): ?Throwable
final public Exception::getCode(): int
final public Exception::getFile(): string
final public Exception::getLine(): int
final public Exception::getTrace(): array
final public Exception::getTraceAsString(): string
public Exception::__toString(): string
private Exception::__clone(): void
}

## Tabla de contenidos

- SoapFault::__construct — Constructor de SoapFault
- SoapFault::__toString — Obtiene una representación en formato cadena de SoapFault