From 073982ab0a339117d06cbfc002b5e215fa282c24 Mon Sep 17 00:00:00 2001 From: Carsten Brandt Date: Sun, 30 Nov 2014 21:02:43 +0100 Subject: [PATCH] Update BaseActiveRecord.php The exceptions thrown on error are db exceptions. --- framework/db/BaseActiveRecord.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework/db/BaseActiveRecord.php b/framework/db/BaseActiveRecord.php index 32ab1237ea..0eb14530e1 100644 --- a/framework/db/BaseActiveRecord.php +++ b/framework/db/BaseActiveRecord.php @@ -634,7 +634,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface * or [[beforeSave()]] stops the updating process. * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data * being updated is outdated. - * @throws \Exception in case update failed. + * @throws Exception in case update failed. */ public function update($runValidation = true, $attributeNames = null) { @@ -772,7 +772,7 @@ abstract class BaseActiveRecord extends Model implements ActiveRecordInterface * Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful. * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data * being deleted is outdated. - * @throws \Exception in case delete failed. + * @throws Exception in case delete failed. */ public function delete() {