Source for file FilingException.php

Documentation is available at FilingException.php

  1. <?php
  2. include_once(dirname(__FILE__)."/../shared/SharedException.php");
  3. /**
  4. * All methods of all interfaces of the Open Service Interface Definition
  5. * (OSID) throw a subclass of org.osid.OsidException. This requires the caller
  6. * of an osid package method handle the OsidException. Since the application
  7. * using an osid manager can not determine where the manager will ultimately
  8. * execute, it must assume a worst case scenario and protect itself.
  9. *
  10. * <p>
  11. * OSID Version: 2.0
  12. * </p>
  13. *
  14. * <p>
  15. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  16. * O.K.I&#46; OSID Definition License}.
  17. * </p>
  18. *
  19. * @package org.osid.filing
  20. */
  21. class FilingException
  22. extends SharedException
  23. {
  24. /**
  25. * Selected item already exists
  26. * Note: This method is PHP's equivalent of a static field.
  27. *
  28. * @return string
  29. * @access public
  30. * @static
  31. */
  32. function ITEM_ALREADY_EXISTS () {
  33. return "Selected item already exists";
  34. }
  35.  
  36. /**
  37. * Selected item does not exist
  38. * Note: This method is PHP's equivalent of a static field.
  39. *
  40. * @return string
  41. * @access public
  42. * @static
  43. */
  44. function ITEM_DOES_NOT_EXIST () {
  45. return "Selected item does not exist";
  46. }
  47.  
  48. /**
  49. * Unsupported operation
  50. * Note: This method is PHP's equivalent of a static field.
  51. *
  52. * @return string
  53. * @access public
  54. * @static
  55. */
  56. function UNSUPPORTED_OPERATION () {
  57. return "Unsupported operation";
  58. }
  59.  
  60. /**
  61. * IO error
  62. * Note: This method is PHP's equivalent of a static field.
  63. *
  64. * @return string
  65. * @access public
  66. * @static
  67. */
  68. function IO_ERROR () {
  69. return "IO error";
  70. }
  71.  
  72. /**
  73. * Unsupported CabinetEntry Type
  74. * Note: This method is PHP's equivalent of a static field.
  75. *
  76. * @return string
  77. * @access public
  78. * @static
  79. */
  80. function UNSUPPORTED_TYPE () {
  81. return "Unsupported CabinetEntry Type";
  82. }
  83.  
  84. /**
  85. * Cabinet is not empty
  86. * Note: This method is PHP's equivalent of a static field.
  87. *
  88. * @return string
  89. * @access public
  90. * @static
  91. */
  92. function CABINET_NOT_EMPTY () {
  93. return "Cabinet is not empty";
  94. }
  95.  
  96. /**
  97. * Object is not a Cabinet
  98. * Note: This method is PHP's equivalent of a static field.
  99. *
  100. * @return string
  101. * @access public
  102. * @static
  103. */
  104. function NOT_A_CABINET () {
  105. return "Object is not a Cabinet";
  106. }
  107.  
  108. /**
  109. * Object is not a ByteStore
  110. * Note: This method is PHP's equivalent of a static field.
  111. *
  112. * @return string
  113. * @access public
  114. * @static
  115. */
  116. function NOT_A_BYTESTORE () {
  117. return "Object is not a ByteStore";
  118. }
  119.  
  120. /**
  121. * Name contains illegal characters
  122. * Note: This method is PHP's equivalent of a static field.
  123. *
  124. * @return string
  125. * @access public
  126. * @static
  127. */
  128. function NAME_CONTAINS_ILLEGAL_CHARS () {
  129. return "Name contains illegal characters";
  130. }
  131.  
  132. /**
  133. * Owner is null
  134. * Note: This method is PHP's equivalent of a static field.
  135. *
  136. * @return string
  137. * @access public
  138. * @static
  139. */
  140. function NULL_OWNER () {
  141. return "Owner is null";
  142. }
  143.  
  144. /**
  145. * Delete failed
  146. * Note: This method is PHP's equivalent of a static field.
  147. *
  148. * @return string
  149. * @access public
  150. * @static
  151. */
  152. function DELETE_FAILED () {
  153. return "Delete failed";
  154. }
  155.  
  156. /**
  157. * Can't delete root Cabinet
  158. * Note: This method is PHP's equivalent of a static field.
  159. *
  160. * @return string
  161. * @access public
  162. * @static
  163. */
  164. function CANNOT_DELETE_ROOT_CABINET () {
  165. return "Cannot delete root Cabinet";
  166. }
  167.  
  168.  
  169. function FilingException ( $message ) {
  170. die($message);
  171. }
  172.  
  173. }
  174.  
  175. ?>

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