Requests 2.0.12 API

Curl extends Transport
in package

FinalYes

CURL Transport Exception.

Table of Contents

Constants

EASY  = 'cURLEasy'
MULTI  = 'cURLMulti'
SHARE  = 'cURLShare'

Properties

$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

Methods

__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 = 0 ]) : mixed
Parameters
$message : string

Exception message.

$type : string

Exception type.

$data : mixed = null

Associated data, if applicable.

$code : int = 0

Exception numerical code, if applicable.

getData()

Gives any relevant data

public getData() : 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

        
On this page

Search results