PDFGate's PHP SDK

TransportException extends PdfGateException
in package

Thrown when the HTTP transport fails before a response is received.

Table of Contents

Methods

causedBy()  : self
Builds a transport exception preserving a root cause and copying its code.
forRequestFailure()  : self
Builds a transport exception for request failures before a response is received.

Methods

causedBy()

Builds a transport exception preserving a root cause and copying its code.

public static causedBy(Throwable $previous, string $message) : self
Parameters
$previous : Throwable

Root cause to wrap.

$message : string

Exception message.

Return values
self

forRequestFailure()

Builds a transport exception for request failures before a response is received.

public static forRequestFailure(string $method, string $url, Throwable $previous) : self
Parameters
$method : string

HTTP method used in the failed request.

$url : string

Fully-qualified URL used in the failed request.

$previous : Throwable

Root cause from the underlying transport layer.

Return values
self

        
On this page

Search results