Primo Committ
This commit is contained in:
19
vendor/spatie/db-dumper/src/Exceptions/CannotSetParameter.php
vendored
Normal file
19
vendor/spatie/db-dumper/src/Exceptions/CannotSetParameter.php
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\DbDumper\Exceptions;
|
||||
|
||||
use Exception;
|
||||
|
||||
class CannotSetParameter extends Exception
|
||||
{
|
||||
/**
|
||||
* @param string $name
|
||||
* @param string $conflictName
|
||||
*
|
||||
* @return \Spatie\DbDumper\Exceptions\CannotSetParameter
|
||||
*/
|
||||
public static function conflictingParameters($name, $conflictName)
|
||||
{
|
||||
return new static("Cannot set `{$name}` because it conflicts with parameter `{$conflictName}`.");
|
||||
}
|
||||
}
|
||||
18
vendor/spatie/db-dumper/src/Exceptions/CannotStartDump.php
vendored
Normal file
18
vendor/spatie/db-dumper/src/Exceptions/CannotStartDump.php
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<?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.");
|
||||
}
|
||||
}
|
||||
35
vendor/spatie/db-dumper/src/Exceptions/DumpFailed.php
vendored
Normal file
35
vendor/spatie/db-dumper/src/Exceptions/DumpFailed.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Spatie\DbDumper\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
class DumpFailed extends Exception
|
||||
{
|
||||
/**
|
||||
* @param \Symfony\Component\Process\Process $process
|
||||
*
|
||||
* @return \Spatie\DbDumper\Exceptions\DumpFailed
|
||||
*/
|
||||
public static function processDidNotEndSuccessfully(Process $process)
|
||||
{
|
||||
return new static("The dump process failed with exitcode {$process->getExitCode()} : {$process->getExitCodeText()} : {$process->getErrorOutput()}");
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Spatie\DbDumper\Exceptions\DumpFailed
|
||||
*/
|
||||
public static function dumpfileWasNotCreated()
|
||||
{
|
||||
return new static('The dumpfile could not be created');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \Spatie\DbDumper\Exceptions\DumpFailed
|
||||
*/
|
||||
public static function dumpfileWasEmpty()
|
||||
{
|
||||
return new static('The created dumpfile is empty');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user