forked from mantisbt/mantisbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStateException.php
38 lines (35 loc) · 1.45 KB
/
StateException.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
# MantisBT - A PHP based bugtracking system
# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
namespace Mantis\Exceptions;
/**
* An exception that is triggered due to an error in the state of Mantis.
* For example, the data in the database is inconsistent or invalid
* configuration. This should not be trigger for invalid user input,
* bad requests or code errors.
*/
class StateException extends MantisException {
/**
* Constructor
*
* @param string $p_message The internal non-localized error message.
* @param integer $p_code The Mantis error code.
* @param array $p_params Localized error message parameters.
* @param Throwable $p_previous The inner exception.
* @return void
*/
function __construct( $p_message, $p_code, $p_params = array(), Throwable $p_previous = null ) {
parent::__construct( $p_message, $p_code, $p_params, $p_previous );
}
}