Basicis - Core

Logo

As the name says, it is made to be basic and direct.

View the Project on GitHub basicis/core

Basicis\Http\Client\NetworkException

NetworkException class Thrown when the request cannot be completed because of network issues.

There is no response object as this exception is thrown when no response has been received. Ex: the target host name can not be resolved or the connection failed.

Implements:

Stringable, Throwable, Psr\Http\Client\ClientExceptionInterface, Psr\Http\Client\NetworkExceptionInterface

Extend:

Basicis\Http\Client\ClientException

Methods

Name Description
getRequest Function getRequest
Returns the request.  

Inherited methods

Name Description
__construct Construct the exception
__toString String representation of the exception
__wakeup -
getCode Gets the Exception code
getFile Gets the file in which the exception was created
getLine Gets the line in which the exception was created
getMessage Gets the Exception message
getPrevious Returns previous Exception
getTrace Gets the stack trace
getTraceAsString Gets the stack trace as a string
log Function log
setRequest Function setRequest

NetworkException::getRequest

Description

public getRequest (void)

Function getRequest Returns the request.

The request object MAY be a different object from the one passed to ClientInterface::sendRequest()

Parameters

This function has no parameters.

Return Values

\RequestInterface