PluginProbe ʕ •ᴥ•ʔ
Transferito: WP Migration / trunk
Transferito: WP Migration vtrunk
trunk 11.4.0 12.0.0 13.1.0 14.0.0 14.0.11 14.0.7 14.1.0 14.1.1 14.1.2 14.1.3 14.1.4
transferito / vendor / aws / aws-sdk-php / src / Exception / CouldNotCreateChecksumException.php
transferito / vendor / aws / aws-sdk-php / src / Exception Last commit date
AwsException.php 10 months ago CommonRuntimeException.php 10 months ago CouldNotCreateChecksumException.php 10 months ago CredentialsException.php 10 months ago CryptoException.php 10 months ago CryptoPolyfillException.php 10 months ago EventStreamDataException.php 10 months ago IncalculablePayloadException.php 10 months ago InvalidJsonException.php 10 months ago InvalidRegionException.php 10 months ago MultipartUploadException.php 10 months ago TokenException.php 10 months ago UnresolvedApiException.php 10 months ago UnresolvedEndpointException.php 10 months ago UnresolvedSignatureException.php 10 months ago
CouldNotCreateChecksumException.php
26 lines
1 <?php
2 namespace Aws\Exception;
3
4 use Aws\HasMonitoringEventsTrait;
5 use Aws\MonitoringEventsInterface;
6
7 class CouldNotCreateChecksumException extends \RuntimeException implements
8 MonitoringEventsInterface
9 {
10 use HasMonitoringEventsTrait;
11
12 public function __construct($algorithm, \Exception $previous = null)
13 {
14 $prefix = $algorithm === 'md5' ? "An" : "A";
15 parent::__construct("{$prefix} {$algorithm} checksum could not be "
16 . "calculated for the provided upload body, because it was not "
17 . "seekable. To prevent this error you can either 1) include the "
18 . "ContentMD5 or ContentSHA256 parameters with your request, 2) "
19 . "use a seekable stream for the body, or 3) wrap the non-seekable "
20 . "stream in a GuzzleHttp\\Psr7\\CachingStream object. You "
21 . "should be careful though and remember that the CachingStream "
22 . "utilizes PHP temp streams. This means that the stream will be "
23 . "temporarily stored on the local disk.", 0, $previous);
24 }
25 }
26