for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Veto.
* PHP Microframework.
*
* @author Damien Walsh <[email protected]>
* @copyright Damien Walsh 2013-2014
* @version 0.1
* @package veto
*/
namespace Veto\Configuration\Exception;
* ConfigurationException
* Represents a problem with the configuration loaded by the application.
* @since 0.1
class ConfigurationException extends \Exception
{
public static function missingKey($expectedKey)
return new self(
sprintf('Key "%s" must be specified in the application configuration.', $expectedKey)
);
}
public static function missingSubkey($parentKey, $expectedSubkey)
sprintf(
'Key "%s" must contain a child "%s" in the application configuration.',
$parentKey,
$expectedSubkey
)
public static function missingImportedFile($file, $importedFrom)
sprintf('File %s (imported from %s) does not exist.', $file, $importedFrom)