Files
sihnon-php-lib/source/lib/SihnonFramework/Exceptions.class.php
Ben Roberts 6d1705f5a9 Updates class autoloader to use class_alias
Makes Exceptions extend the base classes, rather than the subclasses to
avoid class redefinition errors.
Makes PluginFactories define the interface using the base class rather
than a subclass to avoid class_implements() to fail by testing for a
class not in the hierarchy.
2010-10-11 23:04:20 +01:00

25 lines
1.5 KiB
PHP

<?php
class SihnonFramework_Exception extends Exception {};
class SihnonFramework_Exception_NotImplemented extends SihnonFramework_Exception {};
class SihnonFramework_Exception_MissingDefinition extends SihnonFramework_Exception {};
class SihnonFramework_Exception_DatabaseException extends SihnonFramework_Exception {};
class SihnonFramework_Exception_DatabaseConfigMissing extends SihnonFramework_Exception_DatabaseException {};
class SihnonFramework_Exception_DatabaseConnectFailed extends SihnonFramework_Exception_DatabaseException {};
class SihnonFramework_Exception_NoDatabaseConnection extends SihnonFramework_Exception_DatabaseException {};
class SihnonFramework_Exception_DatabaseQueryFailed extends SihnonFramework_Exception_DatabaseException {};
class SihnonFramework_Exception_ResultCountMismatch extends SihnonFramework_Exception_DatabaseException {};
class SihnonFramework_Exception_ConfigException extends SihnonFramework_Exception {};
class SihnonFramework_Exception_UnknownSetting extends SihnonFramework_Exception_ConfigException {};
class SihnonFramework_Exception_CacheException extends SihnonFramework_Exception {};
class SihnonFramework_Exception_InvalidCacheDir extends SihnonFramework_Exception_CacheException {};
class SihnonFramework_Exception_CacheObjectNotFound extends SihnonFramework_Exception_CacheException {};
class SihnonFramework_Exception_InvalidPluginName extends SihnonFramework_Exception {};
?>