summaryrefslogtreecommitdiff
path: root/framework/TComponent.php
diff options
context:
space:
mode:
authorwei <>2006-10-06 03:44:07 +0000
committerwei <>2006-10-06 03:44:07 +0000
commitde630e4134484cea82fd0a1864a45db3bd9974bc (patch)
tree4fffaedcb5b1cad09223ca19a0a3f69fe50335a8 /framework/TComponent.php
parent6737b5ab5d32a8d53bcb41a473946f82334fc4e9 (diff)
update js logger and make TComponent::ensureEnum show available values during exception.
Diffstat (limited to 'framework/TComponent.php')
-rw-r--r--framework/TComponent.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/TComponent.php b/framework/TComponent.php
index 95186800..54fe7ec7 100644
--- a/framework/TComponent.php
+++ b/framework/TComponent.php
@@ -618,7 +618,9 @@ class TPropertyValue
if($types[$enums]->hasConstant($value))
return $value;
else
- throw new TInvalidDataValueException('propertyvalue_enumvalue_invalid',$value,$enums);
+ throw new TInvalidDataValueException(
+ 'propertyvalue_enumvalue_invalid',$value,
+ implode(' | ',$types[$enums]->getConstants()));
}
else if(!is_array($enums))
{