Newer
Older
framework / system / Exceptions / ConfigException.php
@Jim Parry Jim Parry on 1 Dec 2018 556 bytes Release 4.0.0-alpha.3
<?php namespace CodeIgniter\Exceptions;

/**
 * Exception for automatic logging.
 */

class ConfigException extends CriticalError
{

	/**
	 * Error code
	 *
	 * @var integer
	 */
	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'));
	}
}