blob: 9b4fb5479ac35d41f34ed0145b6bfb8bdff944a3 (
plain)
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
|
<?php
namespace SMW\MediaWiki\Exception;
use PermissionsError;
/**
* @license GNU GPL v2+
* @since 2.5
*
* @author mwjames
*/
class ExtendedPermissionsError extends PermissionsError {
/**
* @since 2.5
*
* {@inheritDoc}
*/
public function __construct( $permission, $errors = [] ) {
parent::__construct( $permission, [] );
// Push SMW specific messages to appear first, PermissionsError will
// generate a list of required permissions
array_unshift( $this->errors, $errors );
}
}
|