File indexing completed on 2025-01-26 05:25:26
0001 <?php 0002 /** 0003 * Zend Framework 0004 * 0005 * LICENSE 0006 * 0007 * This source file is subject to the new BSD license that is bundled 0008 * with this package in the file LICENSE.txt. 0009 * It is also available through the world-wide-web at this URL: 0010 * http://framework.zend.com/license/new-bsd 0011 * If you did not receive a copy of the license and are unable to 0012 * obtain it through the world-wide-web, please send an email 0013 * to license@zend.com so we can send you a copy immediately. 0014 * 0015 * @category Zend 0016 * @package Zend_Service_Amazon 0017 * @subpackage SimpleDb 0018 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0019 * @license http://framework.zend.com/license/new-bsd New BSD License 0020 */ 0021 0022 /** 0023 * @see Zend_Service_Amazon_Exception 0024 */ 0025 // require_once 'Zend/Service/Amazon/Exception.php'; 0026 0027 /** 0028 * The Custom Exception class that allows you to have access to the AWS Error Code. 0029 * 0030 * @category Zend 0031 * @package Zend_Service_Amazon 0032 * @subpackage SimpleDb 0033 * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) 0034 * @license http://framework.zend.com/license/new-bsd New BSD License 0035 */ 0036 class Zend_Service_Amazon_SimpleDb_Exception extends Zend_Service_Amazon_Exception 0037 { 0038 /** 0039 * @var string 0040 */ 0041 private $_awsErrorCode = ''; 0042 0043 /** 0044 * Constructor 0045 * 0046 * @param string $message 0047 * @param int $code 0048 * @param string $awsErrorCode 0049 * @return void 0050 */ 0051 public function __construct($message, $code = 0, $awsErrorCode = '') 0052 { 0053 parent::__construct($message, $code); 0054 $this->_awsErrorCode = $awsErrorCode; 0055 } 0056 0057 /** 0058 * Get AWS error code 0059 * 0060 * @return string 0061 */ 0062 public function getErrorCode() 0063 { 0064 return $this->_awsErrorCode; 0065 } 0066 }