mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
30 lines
547 B
PHP
30 lines
547 B
PHP
<?php namespace CodeIgniter\Exceptions;
|
|
|
|
/**
|
|
* Exception for automatic logging.
|
|
*/
|
|
class ConfigException extends CriticalError
|
|
{
|
|
|
|
/**
|
|
* Error code
|
|
* @var int
|
|
*/
|
|
protected $code = 3;
|
|
|
|
public static function forMissingMigrationsTable()
|
|
{
|
|
throw new static(lang('Migrations.missingTable'));
|
|
}
|
|
|
|
public static function forInvalidMigrationType(string $type = null)
|
|
{
|
|
throw new static(lang('Migrations.invalidType', [$type]));
|
|
}
|
|
|
|
public static function forDisabledMigrations()
|
|
{
|
|
throw new static(lang('Migrations.disabled'));
|
|
}
|
|
}
|