PHP Class Webmozart\KeyValueStore\Api\UnserializationFailedException

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends RuntimeExceptio\RuntimeException
显示文件 Open project: webmozart/key-value-store

Public Methods

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.

Method Details

forType() public static method

Creates a new exception for the given value type.
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.

forValue() public static method

Creates a new exception for the given value.
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.