Lines Matching defs:error
26 * @param int $error
28 public function __construct($error, ?Request $request = null, ?Response $response = null)
30 $this->_error = $error;
37 * Returns the error message corresponding to the error code
38 * cUrl error code reference can be found here {@link http://curl.haxx.se/libcurl/c/libcurl-errors.html}.
40 * @param int $error Error code
44 public function getErrorMessage(int $error): string
46 switch ($error) {
50 return 'Internal cUrl error?';
63 return 'Unknown error:'.$error;