Exception.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * Phergie
  4. *
  5. * PHP version 5
  6. *
  7. * LICENSE
  8. *
  9. * This source file is subject to the new BSD license that is bundled
  10. * with this package in the file LICENSE.
  11. * It is also available through the world-wide-web at this URL:
  12. * http://phergie.org/license
  13. *
  14. * @category Phergie
  15. * @package Phergie
  16. * @author Phergie Development Team <team@phergie.org>
  17. * @copyright 2008-2010 Phergie Development Team (http://phergie.org)
  18. * @license http://phergie.org/license New BSD License
  19. * @link http://pear.phergie.org/package/Phergie
  20. */
  21. /**
  22. * Exception related to driver operations.
  23. *
  24. * @category Phergie
  25. * @package Phergie
  26. * @author Phergie Development Team <team@phergie.org>
  27. * @license http://phergie.org/license New BSD License
  28. * @link http://pear.phergie.org/package/Phergie
  29. */
  30. class Phergie_Driver_Exception extends Phergie_Exception
  31. {
  32. /**
  33. * Error indicating that an operation was requested requiring an active
  34. * connection before one had been set
  35. */
  36. const ERR_NO_ACTIVE_CONNECTION = 1;
  37. /**
  38. * Error indicating that an operation was requested requiring an active
  39. * connection where one had been set but not initiated
  40. */
  41. const ERR_NO_INITIATED_CONNECTION = 2;
  42. /**
  43. * Error indicating that an attempt to initiate a connection failed
  44. */
  45. const ERR_CONNECTION_ATTEMPT_FAILED = 3;
  46. /**
  47. * Error indicating that an attempt to send data via a connection failed
  48. */
  49. const ERR_CONNECTION_WRITE_FAILED = 4;
  50. /**
  51. * Error indicating that an attempt to read data via a connection failed
  52. */
  53. const ERR_CONNECTION_READ_FAILED = 5;
  54. }