Method | Description | |
---|---|---|
forType ( string $type, string $reason = '', integer $code, Exception $cause = null ) : static | Creates a new exception for the given value type. | |
forValue ( mixed $value, string $reason = '', integer $code, Exception $cause = null ) : static | Creates a new exception for the given value. |
public static forType ( string $type, string $reason = '', integer $code, Exception $cause = null ) : static | ||
$type | string | The type that could not be unserialized. |
$reason | string | The reason why the value could not be unserialized. |
$code | integer | The exception code. |
$cause | Exception | The exception that caused this exception. |
return | static | The new exception. |
public static forValue ( mixed $value, string $reason = '', integer $code, Exception $cause = null ) : static | ||
$value | mixed | The value that could not be unserialized. |
$reason | string | The reason why the value could not be unserialized. |
$code | integer | The exception code. |
$cause | Exception | The exception that caused this exception. |
return | static | The new exception. |