WireHttp::getError() method

Get a string of the last error message

Usage

// basic usage
$string = $http->getError();

// usage with all arguments
$string = $http->getError(bool $getArray = false);

Arguments

NameType(s)Description
$getArray (optional)bool

Specify true to receive an array of error messages, or omit for a string.

Return value

string array


$http methods and properties

API reference based on ProcessWire core version 3.0.251