CannotInsertRecord
extends Exception
in package
Thrown when a data is not added to the Csv Document.
Table of Contents
Properties
- $name : string
- Validator which did not validate the data.
- $record : array<string|int, mixed>
- The record submitted for insertion.
Methods
- getName() : string
- Returns the validator name.
- getRecord() : array<string|int, mixed>
- Returns the invalid data submitted.
- triggerOnInsertion() : self
- Creates an Exception from a record insertion into a stream.
- triggerOnValidation() : self
- Creates an Exception from a Record Validation.
Properties
$name
Validator which did not validate the data.
protected
string
$name
= ''
$record
The record submitted for insertion.
protected
array<string|int, mixed>
$record
= []
Methods
getName()
Returns the validator name.
public
getName() : string
Return values
stringgetRecord()
Returns the invalid data submitted.
public
getRecord() : array<string|int, mixed>
Return values
array<string|int, mixed>triggerOnInsertion()
Creates an Exception from a record insertion into a stream.
public
static triggerOnInsertion(array<string|int, mixed> $record) : self
Parameters
- $record : array<string|int, mixed>
Return values
selftriggerOnValidation()
Creates an Exception from a Record Validation.
public
static triggerOnValidation(string $name, array<string|int, mixed> $record) : self
Parameters
- $name : string
- $record : array<string|int, mixed>