Unexpected
Exception for when a server response was not what we were expecting.
- Copyright
- 2015-2016 Appertly
- License
- Apache-2.0
Constructors / Destructors
| Returns | Signature and Description |
|---|---|
void | __construct(, , , , ) |
Instance Methods
| Returns | Signature and Description |
|---|---|
?string | getBody()Gets the response body. |
ImmMap<string,mixed> | getInfo()Gets the cURL handle info. |
Method Details
__construct
public function
__construct(?string $body, KeyedContainer<string,mixed> $info, string $msg, int $code = 0, ?Exception $previous = null)| Name | Type | Description |
|---|---|---|
$body | ?string | The response body |
$info | KeyedContainer<string,mixed> | The cURL response info |
$msg | string | The message |
$code | int | The code |
$previous | ?Exception | Any nested exception |
getBody
public function
getBody()Gets the response body.
| Type | Description |
|---|---|
?string | the response body |
getInfo
public function
getInfo()Gets the cURL handle info.
| Type | Description |
|---|---|
ImmMap<string,mixed> | the handle info |