blob: 0e9d8b93a9406e42c61aabfc7cbd8e50221b4ecf (
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 VerifyException extends UserInputException {
public function __toString()
{
$ret = $this->getMessage()."\n";
$data = $this->get_data();
$errors = array();
foreach ($data as $error) {
$errors[] = sprintf("%s: %s", $error["id"], $error["reason"]);
}
$ret .= implode("\n", $errors);
return $ret;
}
}
|