class SyntheticError extends AssertionFailedError (View source)

Creates a synthetic failed assertion.

Properties

protected array $serializableTrace from Exception
protected string $syntheticFile The synthetic file.
protected int $syntheticLine The synthetic line number.
protected array $syntheticTrace The synthetic trace.

Methods

__construct($message, $code, string $file, int $line, array $trace)

Constructor.

array
getSerializableTrace()

Returns the serializable trace (without 'args').

from Exception
string
__toString()

No description

from Exception
__sleep()

No description

from Exception
string
toString()

Wrapper for getMessage() which is declared as final.

string
getSyntheticFile()

No description

int
getSyntheticLine()

No description

array
getSyntheticTrace()

No description

Details

__construct($message, $code, string $file, int $line, array $trace)

Constructor.

Parameters

$message
$code
string $file
int $line
array $trace

array getSerializableTrace()

Returns the serializable trace (without 'args').

Return Value

array

string __toString()

Return Value

string

__sleep()

string toString()

Wrapper for getMessage() which is declared as final.

Return Value

string

string getSyntheticFile()

Return Value

string

int getSyntheticLine()

Return Value

int

array getSyntheticTrace()

Return Value

array