Requests 2.0.7 API

Curl extends Transport
in package

CURL Transport Exception.

Table of Contents

EASY  = 'cURLEasy'
MULTI  = 'cURLMulti'
SHARE  = 'cURLShare'
$code  : int
cURL error code
$data  : mixed
Data associated with the exception
$reason  : string
Clear text error message
$type  : string
Which type of cURL error
__construct()  : mixed
Create a new exception.
getData()  : mixed
Gives any relevant data
getReason()  : string
Get the error message.
getType()  : string
Like {@see \Exception::getCode()}, but a string code.

Constants

EASY

public mixed EASY = 'cURLEasy'

MULTI

public mixed MULTI = 'cURLMulti'

SHARE

public mixed SHARE = 'cURLShare'

Properties

$code

cURL error code

protected int $code = -1

$data

Data associated with the exception

protected mixed $data

$reason

Clear text error message

protected string $reason = 'Unknown'

$type

Which type of cURL error

protected string $type = 'Unknown'

EASY|MULTI|SHARE

Methods

__construct()

Create a new exception.

public __construct(string $message, string $type[, mixed $data = null ], int $code) : mixed
Parameters
$message : string

Exception message.

$type : string

Exception type.

$data : mixed = null

Associated data, if applicable.

$code : int

Exception numerical code, if applicable.

Return values
mixed

getData()

Gives any relevant data

public getData() : mixed
Return values
mixed

getReason()

Get the error message.

public getReason() : string
Return values
string

getType()

Like {@see \Exception::getCode()}, but a string code.

public getType() : string
Return values
string

Search results