IndexerException
extends Exception
in package
Exception used by the Indexer class, giving access to resources which were commited when an error occured.
Tags
Table of Contents
Constants
Properties
- $resources : array<string|int, RepoResource>
- A collection of already processed resources
Methods
- __construct() : mixed
- Creates the exception
- getCommitedResources() : array<string|int, RepoResource>
- Returns the collection of resources which were already commited when an error occured.
Constants
ERROR_DURING_IMPORT
public
mixed
ERROR_DURING_IMPORT
= 1
Properties
$resources
A collection of already processed resources
private
array<string|int, RepoResource>
$resources
= []
Methods
__construct()
Creates the exception
public
__construct([string $message = "" ][, int $code = 0 ][, Throwable|null $previous = null ][, array<string|int, RepoResource> $resources = [] ]) : mixed
Parameters
- $message : string = ""
-
exception message
- $code : int = 0
-
exception code
- $previous : Throwable|null = null
-
original exception
- $resources : array<string|int, RepoResource> = []
-
collection of already commited resources
getCommitedResources()
Returns the collection of resources which were already commited when an error occured.
public
getCommitedResources() : array<string|int, RepoResource>