Issues (263)

lib/Config/ConfigException.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * Nextcloud - Gallery
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 2017
11
 */
12
13
namespace OCA\Gallery\Config;
14
15
use OCP\Util;
0 ignored issues
show
The type OCP\Util was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
16
17
/**
18
 * Thrown when the configuration parser cannot parse a file
19
 */
20
class ConfigException extends \Exception {
21
22
	/**
23
	 * Constructor
24
	 *
25
	 * @param string $msg the message contained in the exception
26
	 */
27
	public function __construct($msg) {
28
		Util::writeLog('gallery', 'Exception: ' . $msg, Util::ERROR);
29
		parent::__construct($msg);
30
	}
31
}
32