Thrown if the data to be stored in a cache can not be handled by the storage.
Most ezcCacheStorage implementations are only capable of storing scalar and array values, so this exception will be thrown when an incompatible type is submitted for storage, like object or resource.
ezcCacheStorage::store() ezcCacheStorageFile::store()
ezcCacheStorageFileArray::prepareData() ezcCacheStorageFileEvalArray::prepareData() ezcCacheStorageFilePlain::prepareData()
Source for this file: /Cache/src/exceptions/invalid_data.php
Exception | --ezcBaseException | --ezcCacheException | --ezcCacheInvalidDataException
Version: | //autogen// |
From ezcBaseException | |
---|---|
public |
ezcBaseException::$originalMessage
|
From Exception (Internal Class) | |
protected |
$code
|
protected |
$file
|
protected |
$line
|
protected |
$message
|
private |
$previous
|
private |
$string
|
private |
$trace
|
public void |
__construct(
$actualType
, $expectedTypes
)
Creates a new ezcCacheInvalidDataException. |
From ezcBaseException | |
---|---|
public ezcBaseException |
ezcBaseException::__construct()
Constructs a new ezcBaseException with $message |
From Exception (Internal Class) | |
public Exception |
constructor __construct ( [$message = ], [$code = ], [$previous = ] )
|
public void |
getCode ( )
|
public void |
getFile ( )
|
public void |
getLine ( )
|
public void |
getMessage ( )
|
public void |
getPrevious ( )
|
public void |
getTrace ( )
|
public void |
getTraceAsString ( )
|
public void |
__clone ( )
|
public void |
__toString ( )
|
Creates a new ezcCacheInvalidDataException.
Name | Type | Description |
---|---|---|
$actualType |
mixed | Type of data received. |
$expectedTypes |
array | Expected data types. |
Method | Description |
---|---|
ezcBaseException::__construct() |
Constructs a new ezcBaseException with $message |