Overview

Namespaces

  • Webmozart
    • KeyValueStore
      • Api
      • Decorator
      • Util

Interfaces

  • CountableStore
  • KeyValueStore
  • SortableStore

Exceptions

  • InvalidKeyException
  • NoSuchKeyException
  • ReadException
  • SerializationFailedException
  • UnserializationFailedException
  • UnsupportedValueException
  • WriteException
  • Overview
  • Namespace
  • Class

Class NoSuchKeyException

Thrown when a key was not found in the store.

Exception
Extended by RuntimeException
Extended by Webmozart\KeyValueStore\Api\NoSuchKeyException
Namespace: Webmozart\KeyValueStore\Api
Since: 1.0
Author: Bernhard Schussek bschussek@gmail.com
Located at Api/NoSuchKeyException.php
Methods summary
public static Webmozart\KeyValueStore\Api\NoSuchKeyException
# forKey( string|integer $key, Exception $cause = null )

Creates an exception for a key that was not found.

Creates an exception for a key that was not found.

Parameters

$key
The key that was not found.
$cause
The exception that caused this exception.

Returns

Webmozart\KeyValueStore\Api\NoSuchKeyException
The created exception.
public static Webmozart\KeyValueStore\Api\NoSuchKeyException
# forKeys( array $keys, Exception $cause = null )

Creates an exception for multiple keys that were not found.

Creates an exception for multiple keys that were not found.

Parameters

$keys
The keys that were not found.
$cause
The exception that caused this exception.

Returns

Webmozart\KeyValueStore\Api\NoSuchKeyException
The created exception.
Methods inherited from Exception
__construct(), __toString(), __wakeup(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties inherited from Exception
$code, $file, $line, $message
Webmozart Key-Value Store API API documentation generated by ApiGen