Dispatched when the back office cannot get data from the product catalog engine, e.g. a PIM which cannot be reached, so that the engine can recognize the failure.
An engine which recognizes it gives the reason, as shown to the back-office user: the back office then tells it instead of failing. The reason is only translated when it is shown, so recognizing a failure costs nothing where it is not. A failure nobody recognizes is left to fail as before.
Methods¶
__construct()
¶
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $throwable | Throwable | - | - |
getReason()
¶
|
|
|
Return values
EngineFailureReasonInterface|null
getThrowable()
¶
The failure as thrown, which may wrap the engine's own one.
|
|
|
Return values
Throwable
isPropagationStopped()
¶
|
|
|
Return values
bool
isRecognized()
¶
|
|
|
Return values
bool
setReason()
¶
Marks the failure as recognized, and stops the propagation of the event.
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $reason | EngineFailureReasonInterface | - | - |
stopPropagation()
¶
Stops the propagation of the event to further event listeners.
|
|
|
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().