Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

(no description)

File Size: 56 lines (1 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ConnectException:: (3 methods):
  __construct()
  getRequest()
  getHandlerContext()


Class: ConnectException  - X-Ref

Exception thrown when a connection cannot be established.

Note that no response is present for a ConnectException
__construct(string $message,RequestInterface $request,\Throwable $previous = null,array $handlerContext = [])   X-Ref


getRequest()   X-Ref
Get the request that caused the exception


getHandlerContext()   X-Ref
Get contextual information about the error from the underlying handler.

The contents of this array will vary depending on which handler you are
using. It may also be just an empty array. Relying on this data will
couple you to a specific handler, but can give more debug information
when needed.