ResponseException

class Firstred\PostNL\Exception\ResponseException
Class ResponseException.
Thrown when there was a problem with the response returned by the CIF API.
Parent:

Firstred\PostNL\Exception\ApiException

Summary

Methods

Properties

private static property Firstred\PostNL\Exception\ResponseException::$response
Type:

\Psr\Http\Message\ResponseInterface

Methods

public Firstred\PostNL\Exception\ResponseException::__construct($message=\'\', $code=0, $previous=null, $response=null)
ResponseException constructor.
Parameters:
  • $message (string)

  • $code (int)

  • $previous (Exception | null)

  • $response (Psr\Http\Message\ResponseInterface | null)

public Firstred\PostNL\Exception\ResponseException::setResponse($response)
Parameters:
  • $response (Psr\Http\Message\ResponseInterface)

public Firstred\PostNL\Exception\ResponseException::getResponse()
Returns:

\Psr\Http\Message\ResponseInterface