eloquent/endec API
Class

Eloquent\Endec\Exception\InvalidEncodedDataException

class InvalidEncodedDataException extends Exception implements EncodingExceptionInterface

The supplied data is not correctly encoded.

Methods

__construct(string $encoding, string|null $data = null, Exception $cause = null)

Construct a new invalid encoded data exception.

string encoding()

Get the name of the expected encoding.

string|null data()

Get the invalid data.

Details

at line 29
public __construct(string $encoding, string|null $data = null, Exception $cause = null)

Construct a new invalid encoded data exception.

Parameters

string $encoding The expected encoding.
string|null $data The invalid data, if available.
Exception $cause The cause, if available.

at line 52
public string encoding()

Get the name of the expected encoding.

Return Value

string The expected encoding.

at line 62
public string|null data()

Get the invalid data.

Return Value

string|null The invalid data, if available.