Source for file RepositoryException.php

Documentation is available at RepositoryException.php

  1. <?php
  2. include_once(dirname(__FILE__)."/../shared/SharedException.php");
  3. /**
  4. * OsidException or one of its subclasses is thrown by all methods of all
  5. * interfaces of an Open Service Interface Definition (OSID). This requires
  6. * the caller of an OSID package method handle the OsidException. Since the
  7. * application using an OSID can not determine where an implementation method
  8. * will ultimately execute, it must assume a worst case scenerio and protect
  9. * itself. OSID Implementations should throw their own subclasses of
  10. * OsidException and limit exception messages to those predefined by their own
  11. * OsidException or its superclasses. This approach to exception messages
  12. * allows Applications and OSID implementations using an OsidException's
  13. * predefined messages to handle exceptions in an interoperable way.
  14. *
  15. * <p>
  16. * OSID Version: 2.0
  17. * </p>
  18. *
  19. * <p>
  20. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  21. * O.K.I&#46; OSID Definition License}.
  22. * </p>
  23. *
  24. * @package org.osid.repository
  25. */
  26. class RepositoryException
  27. extends SharedException
  28. {
  29. /**
  30. * Unknown Repository
  31. * Note: This method is PHP's equivalent of a static field.
  32. *
  33. * @return string
  34. * @access public
  35. * @static
  36. */
  37. function UNKNOWN_REPOSITORY () {
  38. return "Unknown Repository ";
  39. }
  40.  
  41. /**
  42. * No object has this date
  43. * Note: This method is PHP's equivalent of a static field.
  44. *
  45. * @return string
  46. * @access public
  47. * @static
  48. */
  49. function NO_OBJECT_WITH_THIS_DATE () {
  50. return "No object has this date ";
  51. }
  52.  
  53. /**
  54. * Cannot copy or inherit RecordStructure from itself
  55. * Note: This method is PHP's equivalent of a static field.
  56. *
  57. * @return string
  58. * @access public
  59. * @static
  60. */
  61. function CANNOT_COPY_OR_INHERIT_SELF () {
  62. return "Cannot copy or inherit RecordStructure from itself ";
  63. }
  64.  
  65. /**
  66. * Already inheriting this RecordStructure
  67. * Note: This method is PHP's equivalent of a static field.
  68. *
  69. * @return string
  70. * @access public
  71. * @static
  72. */
  73. function ALREADY_INHERITING_STRUCTURE () {
  74. return "Already inheriting this RecordStructure ";
  75. }
  76.  
  77. /**
  78. * Effective date must precede expiration date
  79. * Note: This method is PHP's equivalent of a static field.
  80. *
  81. * @return string
  82. * @access public
  83. * @static
  84. */
  85. function EFFECTIVE_PRECEDE_EXPIRATION () {
  86. return "Effective date must precede expiration date ";
  87. }
  88.  
  89.  
  90. function RepositoryException ( $message ) {
  91. die($message);
  92. }
  93.  
  94. }
  95.  
  96. ?>

Documentation generated on Wed, 19 Sep 2007 10:25:58 -0400 by phpDocumentor 1.3.0RC3