PHP Class Webmozart\KeyValueStore\Api\InvalidKeyException

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

Public Methods

Method Description
forKey ( mixed $key, Exception $cause = null ) : static Creates an exception for an invalid key.

Method Details

forKey() public static method

Creates an exception for an invalid key.
public static forKey ( mixed $key, Exception $cause = null ) : static
$key mixed The invalid key.
$cause Exception The exception that caused this exception.
return static The created exception.