From 6fbe18466d9581b5d6097925a2fb798d397d5b0a Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 15 Feb 2006 23:48:22 +0000 Subject: Added error messages for TListControl. --- framework/Web/UI/WebControls/TListControl.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'framework/Web/UI/WebControls/TListControl.php') diff --git a/framework/Web/UI/WebControls/TListControl.php b/framework/Web/UI/WebControls/TListControl.php index 793b266a..3c1cd547 100644 --- a/framework/Web/UI/WebControls/TListControl.php +++ b/framework/Web/UI/WebControls/TListControl.php @@ -404,7 +404,7 @@ abstract class TListControl extends TDataBoundControl if($index>=0 && $index<$this->_items->getCount()) $this->_items->itemAt($index)->setSelected(true); else if($index!==-1) - throw new TInvalidDataValueException('listcontrol_selectedindex_invalid',$index); + throw new TInvalidDataValueException('listcontrol_selectedindex_invalid',get_class($this),$index); } $this->_cachedSelectedIndex=$index; } @@ -480,7 +480,7 @@ abstract class TListControl extends TDataBoundControl $item->setSelected(true); } else - throw new TInvalidDataValueException('listcontrol_selectedvalue_invalid',$value); + throw new TInvalidDataValueException('listcontrol_selectedvalue_invalid',get_class($this),$value); } $this->_cachedSelectedValue=$value; } @@ -609,7 +609,7 @@ class TListItemCollection extends TList else if($item instanceof TListItem) parent::insertAt($index,$item); else - throw new TInvalidDataTypeException('listitemcollection_item_invalid'); + throw new TInvalidDataTypeException('listitemcollection_item_invalid',get_class($this)); } /** -- cgit v1.2.3