ConnectionFailedException
ConnectionFailedException.php
:
19
Final
Extends RuntimeException
Thrown when the connection settings do not work, as opposed to a single Quable API call failing: every other call made with the same settings fails the same way.
Methods¶
__construct()
¶
ConnectionFailedException.php
:
21
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $reason | ConnectionFailureReason | - | - |
| $message | string | - | - |
| $previous | Throwable|null | null | - |
forbidden()
¶
ConnectionFailedException.php
:
48
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $instanceUrl | string | - | - |
| $path | string | - | - |
Return values
self
getReason()
¶
ConnectionFailedException.php
:
112
|
|
|
Return values
invalidResponse()
¶
ConnectionFailedException.php
:
73
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $instanceUrl | string | - | - |
| $path | string | - | - |
| $content | string | - |
what the answer holds instead, e.g. "a catalog without an ID" |
| $previous | Throwable|null | null | - |
Return values
self
tooManyPages()
¶
ConnectionFailedException.php
:
96
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $instanceUrl | string | - | - |
| $path | string | - | - |
| $pageLimit | int | - | - |
Return values
self
unauthorized()
¶
ConnectionFailedException.php
:
40
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $instanceUrl | string | - | - |
Return values
self
unexpectedResponse()
¶
ConnectionFailedException.php
:
58
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $instanceUrl | string | - | - |
| $statusCode | int | - | - |
| $previous | Throwable|null | null | - |
Return values
self
unknownChannel()
¶
ConnectionFailedException.php
:
86
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $instanceUrl | string | - | - |
| $channelCode | string | - | - |
Return values
self
unreachable()
¶
ConnectionFailedException.php
:
29
|
|
|
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| $instanceUrl | string | - | - |
| $previous | Throwable | - | - |
Return values
self