Documentation is available at RepositoryException.php
- <?php
- include_once(dirname(__FILE__)."/../shared/SharedException.php");
- /**
- * OsidException or one of its subclasses is thrown by all methods of all
- * interfaces of an Open Service Interface Definition (OSID). This requires
- * the caller of an OSID package method handle the OsidException. Since the
- * application using an OSID can not determine where an implementation method
- * will ultimately execute, it must assume a worst case scenerio and protect
- * itself. OSID Implementations should throw their own subclasses of
- * OsidException and limit exception messages to those predefined by their own
- * OsidException or its superclasses. This approach to exception messages
- * allows Applications and OSID implementations using an OsidException's
- * predefined messages to handle exceptions in an interoperable way.
- *
- * <p>
- * OSID Version: 2.0
- * </p>
- *
- * <p>
- * Licensed under the {@link org.osid.SidImplementationLicenseMIT MIT}
- * O.K.I. OSID Definition License}.
- * </p>
- *
- * @package org.osid.repository
- */
- class RepositoryException
- extends SharedException
- {
- /**
- * Unknown Repository
- * Note: This method is PHP's equivalent of a static field.
- *
- * @return string
- * @access public
- * @static
- */
- function UNKNOWN_REPOSITORY () {
- return "Unknown Repository ";
- }
- /**
- * No object has this date
- * Note: This method is PHP's equivalent of a static field.
- *
- * @return string
- * @access public
- * @static
- */
- function NO_OBJECT_WITH_THIS_DATE () {
- return "No object has this date ";
- }
- /**
- * Cannot copy or inherit RecordStructure from itself
- * Note: This method is PHP's equivalent of a static field.
- *
- * @return string
- * @access public
- * @static
- */
- function CANNOT_COPY_OR_INHERIT_SELF () {
- return "Cannot copy or inherit RecordStructure from itself ";
- }
- /**
- * Already inheriting this RecordStructure
- * Note: This method is PHP's equivalent of a static field.
- *
- * @return string
- * @access public
- * @static
- */
- function ALREADY_INHERITING_STRUCTURE () {
- return "Already inheriting this RecordStructure ";
- }
- /**
- * Effective date must precede expiration date
- * Note: This method is PHP's equivalent of a static field.
- *
- * @return string
- * @access public
- * @static
- */
- function EFFECTIVE_PRECEDE_EXPIRATION () {
- return "Effective date must precede expiration date ";
- }
- function RepositoryException ( $message ) {
- die($message);
- }
- }
- ?>
Documentation generated on Wed, 19 Sep 2007 10:25:58 -0400 by phpDocumentor 1.3.0RC3