summaryrefslogtreecommitdiff
path: root/framework/Web/UI
diff options
context:
space:
mode:
authorxue <>2006-02-15 23:48:22 +0000
committerxue <>2006-02-15 23:48:22 +0000
commit6fbe18466d9581b5d6097925a2fb798d397d5b0a (patch)
tree830d6e41582b45b3f9478aab74997fa8d3bdf5cc /framework/Web/UI
parentf2800368b052356a69c3842f04fd00bb63e59c4d (diff)
Added error messages for TListControl.
Diffstat (limited to 'framework/Web/UI')
-rw-r--r--framework/Web/UI/WebControls/TListControl.php6
1 files changed, 3 insertions, 3 deletions
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));
}
/**