Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 9 additions & 11 deletions PDO/DataObject/Exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,15 @@
* @link http://pear.php.net/package/PDO_DataObject
*/



class_exists('PDO_DataObject_Exception_InvalidArgs') ? '' : require_once 'PDO/DataObject/Exception/InvalidArgs.php';
class_exists('PDO_DataObject_Exception_NoData') ? '' : require_once 'PDO/DataObject/Exception/NoData.php';
class_exists('PDO_DataObject_Exception_InvalidConfig') ? '' : require_once 'PDO/DataObject/Exception/InvalidConfig.php';
class_exists('PDO_DataObject_Exception_NoClass') ? '' : require_once 'PDO/DataObject/Exception/NoClass.php';
class_exists('PDO_DataObject_Exception_Set') ? '' : require_once 'PDO/DataObject/Exception/Set.php';
class_exists('PDO_DataObject_Exception_Connect') ? '' : require_once 'PDO/DataObject/Exception/Connect.php';
class_exists('PDO_DataObject_Exception_Query') ? '' : require_once 'PDO/DataObject/Exception/Query.php';

class PDO_DataObject_Exception extends Exception
{

Expand All @@ -49,13 +57,3 @@ static function factory($message, $type, $previous_exception)

}

// child classes - so you can catch them..
class PDO_DataObject_Exception_InvalidArgs extends PDO_DataObject_Exception {};
class PDO_DataObject_Exception_NoData extends PDO_DataObject_Exception {};
class PDO_DataObject_Exception_InvalidConfig extends PDO_DataObject_Exception {};
class PDO_DataObject_Exception_NoClass extends PDO_DataObject_Exception {};
class PDO_DataObject_Exception_Set extends PDO_DataObject_Exception {};
class PDO_DataObject_Exception_Connect extends PDO_DataObject_Exception {};
class PDO_DataObject_Exception_Query extends PDO_DataObject_Exception {};


25 changes: 25 additions & 0 deletions PDO/DataObject/Exception/Connect.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PDO_DataObject_Exception_Connect
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category Database
* @package PDO_DataObject
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version CVS: $Id: Error.php 339237 2016-05-26 03:59:27Z alan_k $
* @link http://pear.php.net/package/PDO_DataObject
*/

class_exists('PDO_DataObject_Exception') ? '' : require_once 'PDO/DataObject/Exception.php';

class PDO_DataObject_Exception_Connect extends PDO_DataObject_Exception {}

25 changes: 25 additions & 0 deletions PDO/DataObject/Exception/InvalidArgs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PDO_DataObject_Exception_InvalidArgs
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category Database
* @package PDO_DataObject
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version CVS: $Id: Error.php 339237 2016-05-26 03:59:27Z alan_k $
* @link http://pear.php.net/package/PDO_DataObject
*/

require_once 'PDO/DataObject/Exception.php';

class PDO_DataObject_Exception_InvalidArgs extends PDO_DataObject_Exception {}

25 changes: 25 additions & 0 deletions PDO/DataObject/Exception/InvalidConfig.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PDO_DataObject_Exception_InvalidConfig
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category Database
* @package PDO_DataObject
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version CVS: $Id: Error.php 339237 2016-05-26 03:59:27Z alan_k $
* @link http://pear.php.net/package/PDO_DataObject
*/

require_once 'PDO/DataObject/Exception.php';

class PDO_DataObject_Exception_InvalidConfig extends PDO_DataObject_Exception {}

25 changes: 25 additions & 0 deletions PDO/DataObject/Exception/NoClass.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PDO_DataObject_Exception_NoClass
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category Database
* @package PDO_DataObject
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version CVS: $Id: Error.php 339237 2016-05-26 03:59:27Z alan_k $
* @link http://pear.php.net/package/PDO_DataObject
*/

require_once 'PDO/DataObject/Exception.php';

class PDO_DataObject_Exception_NoClass extends PDO_DataObject_Exception {}

25 changes: 25 additions & 0 deletions PDO/DataObject/Exception/NoData.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PDO_DataObject_Exception_NoData
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category Database
* @package PDO_DataObject
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version CVS: $Id: Error.php 339237 2016-05-26 03:59:27Z alan_k $
* @link http://pear.php.net/package/PDO_DataObject
*/

require_once dirname(__FILE__) . '/../Exception.php';

class PDO_DataObject_Exception_NoData extends PDO_DataObject_Exception {}

25 changes: 25 additions & 0 deletions PDO/DataObject/Exception/Query.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PDO_DataObject_Exception_Query
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category Database
* @package PDO_DataObject
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version CVS: $Id: Error.php 339237 2016-05-26 03:59:27Z alan_k $
* @link http://pear.php.net/package/PDO_DataObject
*/

require_once 'PDO/DataObject/Exception.php';

class PDO_DataObject_Exception_Query extends PDO_DataObject_Exception {}

25 changes: 25 additions & 0 deletions PDO/DataObject/Exception/Set.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php
/**
* PDO_DataObject_Exception_Set
*
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.01 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_01.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
*
* @category Database
* @package PDO_DataObject
* @author Alan Knowles <alan@akbkhome.com>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_01.txt PHP License 3.01
* @version CVS: $Id: Error.php 339237 2016-05-26 03:59:27Z alan_k $
* @link http://pear.php.net/package/PDO_DataObject
*/

class_exists('PDO_DataObject_Exception') ? '' : require_once 'PDO/DataObject/Exception.php';

class PDO_DataObject_Exception_Set extends PDO_DataObject_Exception {}