PHP Class Webmozart\KeyValueStore\Api\UnsupportedValueException

Since: 1.0
Author: Bernhard Schussek ([email protected])
Inheritance: extends RuntimeExceptio\RuntimeException
Show file Open project: webmozart/key-value-store Class Usage Examples

Public Methods

Method Description
forType ( string $type, Webmozart\KeyValueStore\Api\KeyValueStore $store, integer $code, Exception $cause = null ) : static Creates a new exception for the given value type.
forValue ( string $value, Webmozart\KeyValueStore\Api\KeyValueStore $store, 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, Webmozart\KeyValueStore\Api\KeyValueStore $store, integer $code, Exception $cause = null ) : static
$type string The name of the unsupported type.
$store Webmozart\KeyValueStore\Api\KeyValueStore The store that does not support the type.
$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 ( string $value, Webmozart\KeyValueStore\Api\KeyValueStore $store, integer $code, Exception $cause = null ) : static
$value string The unsupported value.
$store Webmozart\KeyValueStore\Api\KeyValueStore The store that does not support the type.
$code integer The exception code.
$cause Exception The exception that caused this exception.
return static The new exception.