19 lines
343 B
PHP
19 lines
343 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Spatie\DbDumper\Exceptions;
|
||
|
|
|
||
|
|
use Exception;
|
||
|
|
|
||
|
|
class CannotStartDump extends Exception
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* @param string $name
|
||
|
|
*
|
||
|
|
* @return \Spatie\DbDumper\Exceptions\CannotStartDump
|
||
|
|
*/
|
||
|
|
public static function emptyParameter($name)
|
||
|
|
{
|
||
|
|
return new static("Parameter `{$name}` cannot be empty.");
|
||
|
|
}
|
||
|
|
}
|