allow vendord
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 3m3s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 16s
Build, Push and Deploy / deploy-staging (push) Successful in 32s
Build, Push and Deploy / deploy-production (push) Has been skipped
Build, Push and Deploy / cleanup (push) Successful in 1s
This commit is contained in:
26
vendor/league/flysystem/src/UnableToGeneratePublicUrl.php
vendored
Normal file
26
vendor/league/flysystem/src/UnableToGeneratePublicUrl.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace League\Flysystem;
|
||||
|
||||
use RuntimeException;
|
||||
use Throwable;
|
||||
|
||||
final class UnableToGeneratePublicUrl extends RuntimeException implements FilesystemException
|
||||
{
|
||||
public function __construct(string $reason, string $path, ?Throwable $previous = null)
|
||||
{
|
||||
parent::__construct("Unable to generate public url for $path: $reason", 0, $previous);
|
||||
}
|
||||
|
||||
public static function dueToError(string $path, Throwable $exception): static
|
||||
{
|
||||
return new static($exception->getMessage(), $path, $exception);
|
||||
}
|
||||
|
||||
public static function noGeneratorConfigured(string $path, string $extraReason = ''): static
|
||||
{
|
||||
return new static('No generator was configured ' . $extraReason, $path);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user