-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#14733] - Added exceptions for the connection
- Loading branch information
Showing
5 changed files
with
117 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* | ||
* Implementation of this file has been influenced by AtlasPHP | ||
* | ||
* @link https://github.com/atlasphp/Atlas.Pdo | ||
* @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md | ||
*/ | ||
|
||
namespace Phalcon\DM\Pdo\Exception; | ||
|
||
/** | ||
* Could not bind a value to a placeholder in a statement, generally because | ||
* the value is an array, object, or resource. | ||
*/ | ||
class CannotBindValue extends Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* | ||
* Implementation of this file has been influenced by AtlasPHP | ||
* | ||
* @link https://github.com/atlasphp/Atlas.Pdo | ||
* @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md | ||
*/ | ||
|
||
namespace Phalcon\DM\Pdo\Exception; | ||
|
||
/** | ||
* ExtendedPdo could not disconnect; e.g., because its PDO connection was | ||
* created externally and then injected. | ||
*/ | ||
class CannotDisconnect extends Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* | ||
* Implementation of this file has been influenced by AtlasPHP | ||
* | ||
* @link https://github.com/atlasphp/Atlas.Pdo | ||
* @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md | ||
*/ | ||
|
||
namespace Phalcon\DM\Pdo\Exception; | ||
|
||
/** | ||
* Locator could not find a named connection. | ||
*/ | ||
class ConnectionNotFound extends Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* | ||
* Implementation of this file has been influenced by AtlasPHP | ||
* | ||
* @link https://github.com/atlasphp/Atlas.Pdo | ||
* @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md | ||
*/ | ||
|
||
namespace Phalcon\DM\Pdo\Exception; | ||
|
||
/** | ||
* Base Exception class | ||
*/ | ||
class Exception extends \Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
/** | ||
* This file is part of the Phalcon Framework. | ||
* | ||
* (c) Phalcon Team <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE.txt | ||
* file that was distributed with this source code. | ||
* | ||
* Implementation of this file has been influenced by AtlasPHP | ||
* | ||
* @link https://github.com/atlasphp/Atlas.Pdo | ||
* @license https://github.com/atlasphp/Atlas.Pdo/blob/1.x/LICENSE.md | ||
*/ | ||
|
||
namespace Phalcon\DM\Pdo\Exception; | ||
|
||
/** | ||
* Missing a parameter in the values bound to a statement | ||
*/ | ||
class MissingParameter extends Exception | ||
{ | ||
} |