Overview

Packages

  • Requests
    • Authentication
    • Transport
    • Utilities

Classes

  • Requests
  • Requests_Response
  • Requests_Response_Headers

Exceptions

  • Requests_Exception
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class Requests_Exception

Exception for HTTP requests

Exception
Extended by Requests_Exception
Package: Requests
Located at library/Requests/Exception.php
Methods summary
public
# __construct( string $message, string $type, mixed $data = null )

Create a new exception

Create a new exception

Parameters

$message
string
Exception message
$type
string
Exception type
$data
mixed
Associated data
public string
# getType( )

Like getCode(), but a string code.

Like getCode(), but a string code.

Returns

string

CodeCoverageIgnore

public mixed
# getData( )

Gives any relevant data

Gives any relevant data

Returns

mixed

CodeCoverageIgnore

Methods inherited from Exception
__toString(), getCode(), getFile(), getLine(), getMessage(), getPrevious(), getTrace(), getTraceAsString()
Properties summary
protected string $type
#

Type of exception

Type of exception

protected mixed $data
#

Data associated with the exception

Data associated with the exception

Properties inherited from Exception
$code, $file, $line, $message
Requests Documentation API documentation generated by ApiGen 2.4.0