Source for file AuthorizationException.php

Documentation is available at AuthorizationException.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 to handle the OsidException. Since the
  7. * application using an osid manager can not determine where the manager will
  8. * ultimately execute, it must assume a worst case scenario and protect
  9. * itself.
  10. *
  11. * <p>
  12. * OSID Version: 2.0
  13. * </p>
  14. *
  15. * <p>
  16. * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
  17. * O.K.I&#46; OSID Definition License}.
  18. * </p>
  19. *
  20. * @package org.osid.authorization
  21. */
  22. class AuthorizationException
  23. extends SharedException
  24. {
  25. /**
  26. * Effective date must precede expiration date
  27. * Note: This method is PHP's equivalent of a static field.
  28. *
  29. * @return string
  30. * @access public
  31. * @static
  32. */
  33. function EFFECTIVE_PRECEDE_EXPIRATION () {
  34. return "Effective date must precede expiration date ";
  35. }
  36.  
  37. /**
  38. * Cannot delete last root Qualifier
  39. * Note: This method is PHP's equivalent of a static field.
  40. *
  41. * @return string
  42. * @access public
  43. * @static
  44. */
  45. function CANNOT_DELETE_LAST_ROOT_QUALIFIER () {
  46. return "Cannot delete last root Qualifier ";
  47. }
  48.  
  49.  
  50. function AuthorizationException ( $message ) {
  51. die($message);
  52. }
  53.  
  54. }
  55.  
  56. ?>

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