AbortDataSourceDownloadException
extends Exception
in package
Retrieving data from a data source currently only allows to return an array of `AbstractTemplate`.
But what happens, if the download fails, especially within a pool? For this, you can throw this exception and the cloud consumer automatically falls back to the latest available storage items. No items will be persisted, but all data sources within the pool will be tried to download.
Table of Contents
Properties
- $data : mixed
- $dataSource : mixed
Methods
- __construct() : mixed
- C'tor.
- getData() : mixed
- Getter.
- getDataSource() : mixed
- Getter.
Properties
$data
private
mixed
$data
$dataSource
private
mixed
$dataSource
Methods
__construct()
C'tor.
public
__construct(AbstractDataSource $dataSource[, array<string|int, mixed> $data = null ][, Exception $previous = null ]) : mixed
Parameters
- $dataSource : AbstractDataSource
- $data : array<string|int, mixed> = null
-
Custom data which can be reused by
getData
in middlewares - $previous : Exception = null
getData()
Getter.
public
getData(string $key) : mixed
Parameters
- $key : string
Tags
getDataSource()
Getter.
public
getDataSource() : mixed