PHP Class Webmozart\KeyValueStore\Api\NoSuchKeyException

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
forKey ( string | integer $key, Exception $cause = null ) : static Creates an exception for a key that was not found.
forKeys ( array $keys, Exception $cause = null ) : static Creates an exception for multiple keys that were not found.

Method Details

forKey() public static method

Creates an exception for a key that was not found.
public static forKey ( string | integer $key, Exception $cause = null ) : static
$key string | integer The key that was not found.
$cause Exception The exception that caused this exception.
return static The created exception.

forKeys() public static method

Creates an exception for multiple keys that were not found.
public static forKeys ( array $keys, Exception $cause = null ) : static
$keys array The keys that were not found.
$cause Exception The exception that caused this exception.
return static The created exception.