Misconfigured
Exception for network misconfiguration
Constructors / Destructors
| Returns | Signature and Description |
|---|---|
void | __construct(, , , ) |
Instance Methods
| Returns | Signature and Description |
|---|---|
ImmMap<string,mixed> | getInfo()Gets the cURL handle info. |
Static Methods
| Returns | Signature and Description |
|---|---|
bool | isUsable()Determines whether the code returned from cURL is one this class supports. |
Method Details
__construct
Inherited from Unreachable
public function
__construct(KeyedContainer<string,mixed> $info, string $msg, int $code = 0, ?Exception $previous = null)| Name | Type | Description |
|---|---|---|
$info | KeyedContainer<string,mixed> | The cURL handle info |
$msg | string | The message |
$code | int | The code |
$previous | ?Exception | Any nested exception |
getInfo
Inherited from Unreachable
public function
getInfo()Gets the cURL handle info.
| Type | Description |
|---|---|
ImmMap<string,mixed> | the handle info |
isUsable
public static function
isUsable(int $code)Determines whether the code returned from cURL is one this class supports.
| Name | Type | Description |
|---|---|---|
$code | int | The code |
| Type | Description |
|---|---|
bool | whether this class should be used |