Completed
Push — stable8.2 ( 09e830...ae9bfd )
by Olivier
12:09
created

EnvironmentException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * ownCloud - galleryplus
4
 *
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the COPYING file.
7
 *
8
 * @author Olivier Paroz <[email protected]>
9
 *
10
 * @copyright Olivier Paroz 2015
11
 */
12
13
namespace OCA\GalleryPlus\Environment;
14
15
use OCP\Util;
16
17
/**
18
 * Thrown when the Environment runs into a problem
19
 */
20
class EnvironmentException extends \Exception {
21
22
	/**
23
	 * Constructor
24
	 *
25
	 * @param string $msg the message contained in the exception
26
	 */
27 9
	public function __construct($msg) {
28 9
		Util::writeLog('galleryplus', 'Exception' . $msg, Util::ERROR);
29 9
		parent::__construct($msg);
30 9
	}
31
}
32