Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace ZipStream\Exception;
6
 
7
use ZipStream\Exception;
8
 
9
/**
10
 * This Exception gets invoked if a file is not as large as it was specified.
11
 */
12
class FileSizeIncorrectException extends Exception
13
{
14
    /**
15
     * @internal
16
     */
17
    public function __construct(
18
        public readonly int $expectedSize,
19
        public readonly int $actualSize
20
    ) {
21
        parent::__construct("File is {$actualSize} instead of {$expectedSize} bytes large. Adjust `exactSize` parameter.");
22
    }
23
}