mirror of
https://github.com/SociallyDev/Spaces-API.git
synced 2025-08-14 02:27:23 -07:00
spaces.php
This commit is contained in:
parent
7755490b81
commit
eefa32741e
845 changed files with 50409 additions and 0 deletions
19
aws/Aws/Exception/CouldNotCreateChecksumException.php
Normal file
19
aws/Aws/Exception/CouldNotCreateChecksumException.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
namespace Aws\Exception;
|
||||
|
||||
class CouldNotCreateChecksumException extends \RuntimeException
|
||||
{
|
||||
public function __construct($algorithm, \Exception $previous = null)
|
||||
{
|
||||
$prefix = $algorithm === 'md5' ? "An" : "A";
|
||||
parent::__construct("{$prefix} {$algorithm} checksum could not be "
|
||||
. "calculated for the provided upload body, because it was not "
|
||||
. "seekable. To prevent this error you can either 1) include the "
|
||||
. "ContentMD5 or ContentSHA256 parameters with your request, 2) "
|
||||
. "use a seekable stream for the body, or 3) wrap the non-seekable "
|
||||
. "stream in a GuzzleHttp\\Psr7\\CachingStream object. You "
|
||||
. "should be careful though and remember that the CachingStream "
|
||||
. "utilizes PHP temp streams. This means that the stream will be "
|
||||
. "temporarily stored on the local disk.", 0, $previous);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue