https://www.mediawiki.org/wiki/Special:Code/MediaWiki/109305
Revision: 109305 Author: aaron Date: 2012-01-18 04:30:19 +0000 (Wed, 18 Jan 2012) Log Message: ----------- Consolidated fake php-cloudfiles code a bit Modified Paths: -------------- trunk/extensions/SwiftMedia/php-fakecloudfiles/fake_cloudfiles.php Added Paths: ----------- trunk/extensions/SwiftMedia/php-fakecloudfiles/cloudfiles_exceptions.php Removed Paths: ------------- trunk/extensions/SwiftMedia/php-cloudfiles/ Copied: trunk/extensions/SwiftMedia/php-fakecloudfiles/cloudfiles_exceptions.php (from rev 109300, trunk/extensions/SwiftMedia/php-cloudfiles/cloudfiles_exceptions.php) =================================================================== --- trunk/extensions/SwiftMedia/php-fakecloudfiles/cloudfiles_exceptions.php (rev 0) +++ trunk/extensions/SwiftMedia/php-fakecloudfiles/cloudfiles_exceptions.php 2012-01-18 04:30:19 UTC (rev 109305) @@ -0,0 +1,41 @@ +<?php +/** + * Custom Exceptions for the CloudFiles API + * + * Requres PHP 5.x (for Exceptions and OO syntax) + * + * See COPYING for license information. + * + * @author Eric "EJ" Johnson <e...@racklabs.com> + * @copyright Copyright (c) 2008, Rackspace US, Inc. + * @package php-cloudfiles-exceptions + */ + +/** + * Custom Exceptions for the CloudFiles API + * @package php-cloudfiles-exceptions + */ +class SyntaxException extends Exception { } +class AuthenticationException extends Exception { } +class InvalidResponseException extends Exception { } +class NonEmptyContainerException extends Exception { } +class NoSuchObjectException extends Exception { } +class NoSuchContainerException extends Exception { } +class NoSuchAccountException extends Exception { } +class MisMatchedChecksumException extends Exception { } +class IOException extends Exception { } +class CDNNotEnabledException extends Exception { } +class BadContentTypeException extends Exception { } +class InvalidUTF8Exception extends Exception { } +class ConnectionNotOpenException extends Exception { } + +/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * c-hanging-comment-ender-p: nil + * End: + */ +?> Modified: trunk/extensions/SwiftMedia/php-fakecloudfiles/fake_cloudfiles.php =================================================================== --- trunk/extensions/SwiftMedia/php-fakecloudfiles/fake_cloudfiles.php 2012-01-18 04:28:50 UTC (rev 109304) +++ trunk/extensions/SwiftMedia/php-fakecloudfiles/fake_cloudfiles.php 2012-01-18 04:30:19 UTC (rev 109305) @@ -14,7 +14,7 @@ } else { die( "Nothing to see here.\n" ); } -require_once( dirname( __FILE__ ) . "/../php-cloudfiles/cloudfiles_exceptions.php" ); +require_once( dirname( __FILE__ ) . "/cloudfiles_exceptions.php" ); define( "DEFAULT_CF_API_VERSION", 1 ); define( "MAX_CONTAINER_NAME_LEN", 256 ); define( "MAX_OBJECT_NAME_LEN", 1024 ); _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs