Overview

Namespaces

  • PHP
  • Saklient
    • Cloud
      • Enums
      • Errors
      • Models
      • Resources
    • Errors

Classes

  • ExceptionFactory

Exceptions

  • HttpBadGatewayException
  • HttpBadRequestException
  • HttpConflictException
  • HttpException
  • HttpExpectationFailedException
  • HttpFailedDependencyException
  • HttpForbiddenException
  • HttpGatewayTimeoutException
  • HttpGoneException
  • HttpHttpVersionNotSupportedException
  • HttpInsufficientStorageException
  • HttpInternalServerErrorException
  • HttpLengthRequiredException
  • HttpLockedException
  • HttpMethodNotAllowedException
  • HttpNotAcceptableException
  • HttpNotExtendedException
  • HttpNotFoundException
  • HttpNotImplementedException
  • HttpPaymentRequiredException
  • HttpPreconditionFailedException
  • HttpProxyAuthenticationRequiredException
  • HttpRequestedRangeNotSatisfiableException
  • HttpRequestEntityTooLargeException
  • HttpRequestTimeoutException
  • HttpRequestUriTooLongException
  • HttpServiceUnavailableException
  • HttpUnauthorizedException
  • HttpUnprocessableEntityException
  • HttpUnsupportedMediaTypeException
  • HttpUpgradeRequiredException
  • HttpVariantAlsoNegotiatesException
  • SaklientException
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace Saklient\Errors;
 4: 
 5: require_once __DIR__ . "/../../Saklient/Util.php";
 6: use \Saklient\Util;
 7: 
 8: class HttpException extends \Exception {
 9:     
10:     /**
11:      * @access public
12:      * @var int
13:      */
14:     public $status;
15:     
16:     /**
17:      * @access public
18:      * @var string
19:      */
20:     public $code;
21:     
22:     /**
23:      * @access public
24:      * @param int $status
25:      * @param string $code=null
26:      * @param string $message=""
27:      */
28:     public function __construct($status, $code=null, $message="")
29:     {
30:         parent::__construct($message);
31:         $this->status = $status;
32:         $this->code = $code;
33:     }
34:     
35:     
36: 
37: }
38: 
39: 
API documentation generated by ApiGen 2.8.0