Search moodle.org's
Developer Documentation

See Release Notes

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

Differences Between: [Versions 401 and 402]

   1  <?php
   2  
   3  namespace PhpXmlRpc\Exception;
   4  
   5  /**
   6   * To be used for all errors related to parsing HTTP requests and responses
   7   */
   8  class HttpException extends TransportException
   9  {
  10      protected $statusCode;
  11  
  12      public function __construct($message = "", $code = 0, $previous = null, $statusCode = null)
  13      {
  14          parent::__construct($message, $code, $previous);
  15          $this->statusCode = $statusCode;
  16      }
  17  
  18      public function statusCode()
  19      {
  20          return $this->statusCode;
  21      }
  22  }