Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 7... Línea 7...
7
class CouldNotCreateChecksumException extends \RuntimeException implements
7
class CouldNotCreateChecksumException extends \RuntimeException implements
8
    MonitoringEventsInterface
8
    MonitoringEventsInterface
9
{
9
{
10
    use HasMonitoringEventsTrait;
10
    use HasMonitoringEventsTrait;
Línea 11... Línea 11...
11
 
11
 
12
    public function __construct($algorithm, \Exception $previous = null)
12
    public function __construct($algorithm, ?\Exception $previous = null)
13
    {
13
    {
14
        $prefix = $algorithm === 'md5' ? "An" : "A";
14
        $prefix = $algorithm === 'md5' ? "An" : "A";
15
        parent::__construct("{$prefix} {$algorithm} checksum could not be "
15
        parent::__construct("{$prefix} {$algorithm} checksum could not be "
16
            . "calculated for the provided upload body, because it was not "
16
            . "calculated for the provided upload body, because it was not "