Services_ReCaptcha
[ class tree: Services_ReCaptcha ] [ index: Services_ReCaptcha ] [ all elements ]

Source for file Exception.php

Documentation is available at Exception.php

  1. <?php
  2.  
  3. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  4.  
  5. /**
  6.  * This file is part of the PEAR Services_ReCaptcha package.
  7.  *
  8.  * PHP version 5
  9.  *
  10.  * LICENSE: This source file is subject to the MIT license that is available
  11.  * through the world-wide-web at the following URI:
  12.  * http://opensource.org/licenses/mit-license.php
  13.  *
  14.  * @category  Services
  15.  * @package   Services_ReCaptcha
  16.  * @author    David Jean Louis <izi@php.net>
  17.  * @copyright 2008-2009 David Jean Louis
  18.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  19.  * @version   CVS: $Id$
  20.  * @link      http://pear.php.net/package/Services_ReCaptcha
  21.  * @link      http://recaptcha.net
  22.  * @since     File available since release 0.1.0
  23.  * @filesource
  24.  */
  25.  
  26. /**
  27.  * Include the PEAR_Exception class.
  28.  */
  29. require_once 'PEAR/Exception.php';
  30.  
  31. /**
  32.  * Base class for exceptions raised by the Services_ReCaptcha package.
  33.  *
  34.  * @category  Services
  35.  * @package   Services_ReCaptcha
  36.  * @author    David Jean Louis <izi@php.net>
  37.  * @copyright 2008-2009 David Jean Louis
  38.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  39.  * @version   Release: @package_version@
  40.  * @link      http://pear.php.net/package/Services_ReCaptcha
  41.  * @link      http://recaptcha.net
  42.  * @since     Class available since release 0.1.0
  43.  */
  44. class Services_ReCaptcha_Exception extends PEAR_Exception
  45. {
  46. }
  47.  
  48. /**
  49.  * Exception raised when an http error occurs.
  50.  *
  51.  * @category  Services
  52.  * @package   Services_ReCaptcha
  53.  * @author    David Jean Louis <izi@php.net>
  54.  * @copyright 2008-2009 David Jean Louis
  55.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  56.  * @version   Release: @package_version@
  57.  * @link      http://pear.php.net/package/Services_ReCaptcha
  58.  * @link      http://recaptcha.net
  59.  * @since     Class available since release 0.1.0
  60.  */
  61. {
  62.     // properties {{{
  63.  
  64.     /**
  65.      * HTTP_Request2_Response instance.
  66.      *
  67.      * @var HTTP_Request2_Response $response 
  68.      */
  69.     public $response;
  70.  
  71.     // }}}
  72.     // __construct() {{{
  73.  
  74.     /**
  75.      * Constructor.
  76.      *
  77.      * @param string                 $msg  The exception message
  78.      * @param int|Exception         $p2   Exception code or cause
  79.      * @param HTTP_Request2_Response $resp Optional request response
  80.      *
  81.      * @return void 
  82.      */
  83.     public function __construct($msg$p2 = null$resp = null)
  84.     {
  85.         parent::__construct($msg$p2);
  86.         $this->response = $resp;
  87.     }
  88.  
  89.     // }}}
  90. }

Documentation generated on Mon, 11 Mar 2019 15:43:39 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.