-
-
Notifications
You must be signed in to change notification settings - Fork 393
Expand file tree
/
Copy pathMetadataStorageError.php
More file actions
25 lines (19 loc) · 777 Bytes
/
MetadataStorageError.php
File metadata and controls
25 lines (19 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
declare(strict_types=1);
namespace Doctrine\Migrations\Exception;
use RuntimeException;
final class MetadataStorageError extends RuntimeException implements MigrationException
{
public static function errorSavingMetadata(): self
{
return new self('The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue.');
}
public static function notUpToDate(): self
{
return new self('The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue.');
}
public static function notInitialized(): self
{
return new self('The metadata storage is not initialized, please run the sync-metadata-storage command to fix this issue.');
}
}