for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Spatie\DbSnapshots\Exceptions;
use Exception;
class CannotCreateDbDumper extends Exception
{
public static function unsupportedDriver(string $driver): self
return new static("Cannot create a dumper for db driver `{$driver}`. Use `mysql`, `pgsql` or `sqlite`.");
}
public static function connectionDoesNotExist(string $connectionName): self
return new static("Cannot create a dumper. Connection `{$connectionName}` does not exist.");