aboutsummaryrefslogtreecommitdiffstats
path: root/includes/profiler
diff options
context:
space:
mode:
Diffstat (limited to 'includes/profiler')
-rw-r--r--includes/profiler/Profiler.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php
index 7f0e4fdc35d7..d5b0ad5cba2b 100644
--- a/includes/profiler/Profiler.php
+++ b/includes/profiler/Profiler.php
@@ -164,7 +164,6 @@ abstract class Profiler {
/**
* Get all usable outputs.
*
- * @throws MWException
* @return ProfilerOutput[]
* @since 1.25
*/
@@ -178,7 +177,7 @@ abstract class Profiler {
? 'ProfilerOutput' . ucfirst( $outputType )
: $outputType;
if ( !class_exists( $outputClass ) ) {
- throw new MWException( "'$outputType' is an invalid output type" );
+ throw new UnexpectedValueException( "'$outputType' is an invalid output type" );
}
$outputInstance = new $outputClass( $this, $this->params );
if ( $outputInstance->canUse() ) {
@@ -223,7 +222,6 @@ abstract class Profiler {
/**
* Log the data to the script/request output for all ProfilerOutput instances that do so
*
- * @throws MWException
* @since 1.26
*/
public function logDataPageOutputOnly() {