ConnectionFailureMessage
ConnectionFailureMessage.php
:
21
Read-only
Final
Implements
EngineFailureReasonInterface
Why the product catalog failed, when the failure comes from the Quable connection: what the back office tells the user, translated only when it is shown. Recognize it with instanceof, e.g. to offer a link to the connection settings next to it.
Methods¶
__construct()
¶
ConnectionFailureMessage.php
:
23
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $failure | ConnectionFailedException|ConnectionNotConfiguredException | - | - |
getFailure()
¶
ConnectionFailureMessage.php
:
27
|
|
|
Return values
ConnectionFailedException|ConnectionNotConfiguredException
trans()
¶
ConnectionFailureMessage.php
:
32
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $translator | TranslatorInterface | - | - |
| $locale | string|null | null | - |
Return values
string