blob: d091c1eabcd2f1e30b4a2841a5fdde864381355b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<?php
/*
* Licensed under AGPLv3
* (see COPYING for full license text)
*
*/
namespace exceptions;
class FileUploadVerifyException extends UserInputException {
public function __toString()
{
$ret = $this->getMessage()."\n";
$data = $this->get_data();
$errors = array();
foreach ($data as $error) {
$errors[] = sprintf("%s: %s", $error["filename"], $error["message"]);
}
$ret .= implode("\n", $errors);
return $ret;
}
}
|