diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:30:02 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2016-05-01 15:30:02 -0400 |
commit | 1de335ad3f395ca6861085393ba366a9e3fb4a0d (patch) | |
tree | f1fdd326034e05177596851be6a7127615d81498 /includes/filebackend/lockmanager/LockManagerGroup.php | |
parent | 9c75fa8ff6d4d38ef552c00fef5969fb154765e8 (diff) | |
parent | f6d65e533c62f6deb21342d4901ece24497b433e (diff) |
Merge commit 'f6d65'
# Conflicts:
# skins/ArchLinux/ArchLinux.php
Diffstat (limited to 'includes/filebackend/lockmanager/LockManagerGroup.php')
-rw-r--r-- | includes/filebackend/lockmanager/LockManagerGroup.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/includes/filebackend/lockmanager/LockManagerGroup.php b/includes/filebackend/lockmanager/LockManagerGroup.php index 19fc4fef..c72863ed 100644 --- a/includes/filebackend/lockmanager/LockManagerGroup.php +++ b/includes/filebackend/lockmanager/LockManagerGroup.php @@ -78,17 +78,17 @@ class LockManagerGroup { * Register an array of file lock manager configurations * * @param array $configs - * @throws MWException + * @throws Exception */ protected function register( array $configs ) { foreach ( $configs as $config ) { $config['domain'] = $this->domain; if ( !isset( $config['name'] ) ) { - throw new MWException( "Cannot register a lock manager with no name." ); + throw new Exception( "Cannot register a lock manager with no name." ); } $name = $config['name']; if ( !isset( $config['class'] ) ) { - throw new MWException( "Cannot register lock manager `{$name}` with no class." ); + throw new Exception( "Cannot register lock manager `{$name}` with no class." ); } $class = $config['class']; unset( $config['class'] ); // lock manager won't need this @@ -105,11 +105,11 @@ class LockManagerGroup { * * @param string $name * @return LockManager - * @throws MWException + * @throws Exception */ public function get( $name ) { if ( !isset( $this->managers[$name] ) ) { - throw new MWException( "No lock manager defined with the name `$name`." ); + throw new Exception( "No lock manager defined with the name `$name`." ); } // Lazy-load the actual lock manager instance if ( !isset( $this->managers[$name]['instance'] ) ) { @@ -126,11 +126,11 @@ class LockManagerGroup { * * @param string $name * @return array - * @throws MWException + * @throws Exception */ public function config( $name ) { if ( !isset( $this->managers[$name] ) ) { - throw new MWException( "No lock manager defined with the name `$name`." ); + throw new Exception( "No lock manager defined with the name `$name`." ); } $class = $this->managers[$name]['class']; @@ -155,7 +155,7 @@ class LockManagerGroup { * Throws an exception if no lock manager could be found. * * @return LockManager - * @throws MWException + * @throws Exception */ public function getAny() { return isset( $this->managers['default'] ) |