mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 14:29:30 +08:00
refactored exceptions.
I18N WIP.
This commit is contained in:
@@ -61,7 +61,7 @@ class CProfileLogRoute extends CWebLogRoute
|
||||
if ($value === 'summary' || $value === 'callstack')
|
||||
$this->_report = $value;
|
||||
else
|
||||
throw new CException(Yii::t('yii', 'CProfileLogRoute.report "{report}" is invalid. Valid values include "summary" and "callstack".',
|
||||
throw new CException(Yii::t('yii:CProfileLogRoute.report "{report}" is invalid. Valid values include "summary" and "callstack".',
|
||||
array('{report}' => $value)));
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ class CProfileLogRoute extends CWebLogRoute
|
||||
$results[$last[4]] = array($token, $delta, count($stack));
|
||||
} else
|
||||
{
|
||||
throw new CException(Yii::t('yii', 'CProfileLogRoute found a mismatching code block "{token}". Make sure the calls to Yii::beginProfile() and Yii::endProfile() be properly nested.',
|
||||
throw new CException(Yii::t('yii:CProfileLogRoute found a mismatching code block "{token}". Make sure the calls to Yii::beginProfile() and Yii::endProfile() be properly nested.',
|
||||
array('{token}' => $token)));
|
||||
}
|
||||
}
|
||||
@@ -151,7 +151,7 @@ class CProfileLogRoute extends CWebLogRoute
|
||||
else
|
||||
$results[$token] = array($token, 1, $delta, $delta, $delta);
|
||||
} else
|
||||
throw new CException(Yii::t('yii', 'CProfileLogRoute found a mismatching code block "{token}". Make sure the calls to Yii::beginProfile() and Yii::endProfile() be properly nested.',
|
||||
throw new CException(Yii::t('yii:CProfileLogRoute found a mismatching code block "{token}". Make sure the calls to Yii::beginProfile() and Yii::endProfile() be properly nested.',
|
||||
array('{token}' => $token)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user