Completed
Pull Request — stable9 (#52)
by Olivier
09:56
created

ServiceException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 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 2014-2016
11
 */
12
13
namespace OCA\GalleryPlus\Service;
14
15
use OCP\Util;
16
17
/**
18
 * Thrown when the service cannot reply to a request
19
 */
20
class ServiceException extends \Exception {
21
22
	/**
23
	 * Constructor
24
	 *
25
	 * @param string $msg the message contained in the exception
26
	 */
27 45
	public function __construct($msg) {
28 45
		Util::writeLog('galleryplus', 'Exception: ' . $msg, Util::ERROR);
29 45
		parent::__construct($msg);
30 45
	}
31
}
32