Requests 2.0.13 API

InvalidArgument extends InvalidArgumentException
in package

FinalYes

Exception for an invalid argument passed.

Tags
since
2.0.0

Table of Contents

Methods

create()  : InvalidArgument
Create a new invalid argument exception with a standardized text.

Methods

create()

Create a new invalid argument exception with a standardized text.

public static create(int $position, string $name, string $expected, string $received) : InvalidArgument
Parameters
$position : int

The argument position in the function signature. 1-based.

$name : string

The argument name in the function signature.

$expected : string

The argument type expected as a string.

$received : string

The actual argument type received.

Return values
InvalidArgument

        
On this page

Search results