Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
runtime_exception | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | /** |
3 | * |
4 | * This file is part of the phpBB Forum Software package. |
5 | * |
6 | * @copyright (c) phpBB Limited <https://www.phpbb.com> |
7 | * @license GNU General Public License, version 2 (GPL-2.0) |
8 | * |
9 | * For full copyright and license information, please see |
10 | * the docs/CREDITS.txt file. |
11 | * |
12 | */ |
13 | |
14 | namespace phpbb\composer\exception; |
15 | |
16 | use phpbb\exception\runtime_exception as base; |
17 | |
18 | /** |
19 | * Base class for exceptions thrown when managing packages through composer |
20 | */ |
21 | class runtime_exception extends base |
22 | { |
23 | /** |
24 | * Constructor |
25 | * |
26 | * @param string $prefix The language string prefix |
27 | * @param string $message The Exception message to throw (must be a language variable). |
28 | * @param array $parameters The parameters to use with the language var. |
29 | * @param \Exception|null $previous The previous runtime_exception used for the runtime_exception chaining. |
30 | * @param integer $code The Exception code. |
31 | */ |
32 | public function __construct($prefix, $message = '', array $parameters = [], \Exception $previous = null, $code = 0) |
33 | { |
34 | parent::__construct($prefix . $message, $parameters, $previous, $code); |
35 | } |
36 | |
37 | } |