Skip to content

FormatException


Methods

__construct

public __construct(string $message = 'The data provided is not of the expected format or cannot be parsed correctly.', int $code = 0, ?\Throwable $previous = null): mixed

Parameters:

Parameter Type Description
$message string
$code int
$previous ?\Throwable

Inherited methods

__construct

public __construct(?string $message = '', int $code = 0, ?\Throwable $previous = null): mixed

Parameters:

Parameter Type Description
$message ?string
$code int
$previous ?\Throwable

Throws:


__toString

public __toString(): string