diff -r bbdc7f9aa25e -r 03b14b0fe101 vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/MigrationException.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/vendor/doctrine-migrations/lib/Doctrine/DBAL/Migrations/MigrationException.php Fri Nov 25 18:55:43 2011 +0100 @@ -0,0 +1,66 @@ +. +*/ + +namespace Doctrine\DBAL\Migrations; + +/** + * Class for Migrations specific exceptions + * + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @link www.doctrine-project.org + * @since 2.0 + * @author Jonathan H. Wage + */ +class MigrationException extends \Exception +{ + public static function migrationsNamespaceRequired() + { + return new self('Migrations namespace must be configured in order to use Doctrine migrations.', 2); + } + + public static function migrationsDirectoryRequired() + { + return new self('Migrations directory must be configured in order to use Doctrine migrations.', 3); + } + + public static function noMigrationsToExecute() + { + return new self('Could not find any migrations to execute.', 4); + } + + public static function unknownMigrationVersion($version) + { + return new self(sprintf('Could not find migration version %s', $version), 5); + } + + public static function alreadyAtVersion($version) + { + return new self(sprintf('Database is already at version %s', $version), 6); + } + + public static function duplicateMigrationVersion($version, $class) + { + return new self(sprintf('Migration version %s already registered with class %s', $version, $class), 7); + } + + public static function configurationFileAlreadyLoaded() + { + return new self(sprintf('Migrations configuration file already loaded'), 8); + } +}