ExceptionErrors
in package
This class is responsible for organizing and return of error messages from thrown exceptions during a patch operation for the response of PatcherSurvey.
Table of Contents
Properties
- $operationItems : array<string|int, mixed>
Methods
- addExceptionErrorItem() : void
- Adds an exceptionErrorItem containing the error message from the exception and the operation data.
- getExceptionErrorsObject() : array<string|int, mixed>
- Returns the whole response array including all the added exception errors.
Properties
$operationItems
private
array<string|int, mixed>
$operationItems
= []
Methods
addExceptionErrorItem()
Adds an exceptionErrorItem containing the error message from the exception and the operation data.
public
addExceptionErrorItem(ExceptionErrorItem $operationItem) : void
Parameters
- $operationItem : ExceptionErrorItem
getExceptionErrorsObject()
Returns the whole response array including all the added exception errors.
public
getExceptionErrorsObject() : array<string|int, mixed>