Overview

Namespaces

  • Webmozart
    • KeyValueStore
      • Api
      • Decorator
      • Util

Interfaces

  • CountableStore
  • KeyValueStore
  • SortableStore

Exceptions

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

Class SerializationFailedException

Thrown when a value cannot be serialized.

Exception
Extended by RuntimeException
Extended by Webmozart\KeyValueStore\Api\SerializationFailedException
Namespace: Webmozart\KeyValueStore\Api
Since: 1.0
Author: Bernhard Schussek bschussek@gmail.com
Located at Api/SerializationFailedException.php
Methods summary
public static Webmozart\KeyValueStore\Api\SerializationFailedException
# forValue( mixed $value, string $reason = '', integer $code = 0, Exception $cause = null )

Creates a new exception for the given value.

Creates a new exception for the given value.

Parameters

$value
The value that could not be serialized.
$reason

The reason why the value could not be unserialized.

$code
The exception code.
$cause
The exception that caused this exception.

Returns

Webmozart\KeyValueStore\Api\SerializationFailedException
The new exception.
public static Webmozart\KeyValueStore\Api\SerializationFailedException
# forType( string $type, string $reason = '', integer $code = 0, Exception $cause = null )

Creates a new exception for the given value type.

Creates a new exception for the given value type.

Parameters

$type
The type that could not be serialized.
$reason

The reason why the value could not be unserialized.

$code
The exception code.
$cause
The exception that caused this exception.

Returns

Webmozart\KeyValueStore\Api\SerializationFailedException
The new 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