1
+ <?php
2
+ /**
3
+ * MantisBT - A PHP based bugtracking system
4
+ *
5
+ * MantisBT is free software: you can redistribute it and/or modify
6
+ * it under the terms of the GNU General Public License as published by
7
+ * the Free Software Foundation, either version 2 of the License, or
8
+ * (at your option) any later version.
9
+ *
10
+ * MantisBT is distributed in the hope that it will be useful,
11
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ * GNU General Public License for more details.
14
+ *
15
+ * You should have received a copy of the GNU General Public License
16
+ * along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
17
+ *
18
+ * @copyright Copyright (C) 2002 - 2012 MantisBT Team - mantisbt-dev@lists.sourceforge.
19
+ * @link http://www.mantisbt.org
20
+ * @package MantisBT
21
+ */
22
+
23
+ namespace MantisBT \Exception \Email ;
24
+ use MantisBT \Exception \ExceptionAbstract ;
25
+
26
+ /**
27
+ * Disposable Email Address Not Allowed Exception
28
+ * @package MantisBT
29
+ * @subpackage classes
30
+ */
31
+ class DisposableAddressNotAllowed extends ExceptionAbstract
32
+ {
33
+ /**
34
+ * Constructor
35
+ * @param array $p_parameters parameters
36
+ * @param \Exception previous exception
37
+ */
38
+ public function __construct ($ p_parameters = null , \Exception $ p_previous = null )
39
+ {
40
+ if ($ p_parameters === null ) {
41
+ $ t_message = lang_get ('exception_email_disposable ' );
42
+ } else {
43
+ $ t_message = vsprintf ( lang_get ('exception_email_disposable ' ), $ p_parameters );
44
+ }
45
+ parent ::__construct ($ t_message , 500 , $ p_previous );
46
+ }
47
+ }
48
+ ?>
0 commit comments