Services_GeoNames
[ class tree: Services_GeoNames ] [ index: Services_GeoNames ] [ 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_GeoNames 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_GeoNames
  16.  * @author    David JEAN LOUIS <izimobil@gmail.com>
  17.  * @copyright 2008 David JEAN LOUIS
  18.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  19.  * @version   SVN: $Id: Exception.php,v 1.1 2008/12/19 13:44:50 izi Exp $
  20.  * @link      http://pear.php.net/package/Services_GeoNames
  21.  * @link      http://www.geonames.org/export/webservice-exception.html
  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_GeoNames package.
  33.  *
  34.  * @category  Services
  35.  * @package   Services_GeoNames
  36.  * @author    David JEAN LOUIS <izimobil@gmail.com>
  37.  * @copyright 2008 David JEAN LOUIS
  38.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  39.  * @version   Release: 0.2.2
  40.  * @link      http://pear.php.net/package/Services_GeoNames
  41.  * @link      http://www.geonames.org/export/webservice-exception.html
  42.  * @since     Class available since release 0.1.0
  43.  */
  44. class Services_GeoNames_Exception extends PEAR_Exception
  45. {
  46. }
  47.  
  48.  
  49. /**
  50.  * Class for HTTP exceptions raised by the Services_GeoNames package.
  51.  *
  52.  * @category  Services
  53.  * @package   Services_GeoNames
  54.  * @author    David JEAN LOUIS <izimobil@gmail.com>
  55.  * @copyright 2008 David JEAN LOUIS
  56.  * @license   http://opensource.org/licenses/mit-license.php MIT License
  57.  * @version   Release: 0.2.2
  58.  * @link      http://pear.php.net/package/Services_GeoNames
  59.  * @link      http://www.geonames.org/export/webservice-exception.html
  60.  * @since     Class available since release 0.1.0
  61.  */
  62. {
  63.     // properties {{{
  64.  
  65.     /**
  66.      * HTTP_Request2_Response instance.
  67.      *
  68.      * @var HTTP_Request2_Response $response 
  69.      */
  70.     public $response;
  71.  
  72.     // }}}
  73.     // __construct() {{{
  74.  
  75.     /**
  76.      * Constructor.
  77.      *
  78.      * @param string                 $msg  The exception message
  79.      * @param int|Exception         $p2   Exception code or cause
  80.      * @param HTTP_Request2_Response $resp Optional request response
  81.      *
  82.      * @return void 
  83.      */
  84.     public function __construct($msg$p2 = null$resp = null)
  85.     {
  86.         parent::__construct($msg$p2);
  87.         $this->response = $resp;
  88.     }
  89.  
  90.     // }}}
  91. }

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