summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxue <>2006-02-24 01:13:12 +0000
committerxue <>2006-02-24 01:13:12 +0000
commit7b49888da521d113dc5a45cb8429efcf245c03cf (patch)
tree7c2153c96d3ed21c0f9e2334f48af3b81851ddb9
parent8a3d7d5dd5149cca2bea77ec31a36700eb990092 (diff)
Fixed a few minor issues about the newly added ReadOnly property.
-rw-r--r--framework/Collections/TList.php4
-rw-r--r--framework/Collections/TMap.php4
-rw-r--r--framework/Exceptions/TErrorHandler.php1
3 files changed, 4 insertions, 5 deletions
diff --git a/framework/Collections/TList.php b/framework/Collections/TList.php
index 5f4534ca..6dd2561b 100644
--- a/framework/Collections/TList.php
+++ b/framework/Collections/TList.php
@@ -152,7 +152,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess
throw new TInvalidDataValueException('list_index_invalid',$index);
}
else
- throw new TInvalidOperation('list_readonly');
+ throw new TInvalidOperation('list_readonly',get_class($this));
}
/**
@@ -201,7 +201,7 @@ class TList extends TComponent implements IteratorAggregate,ArrayAccess
throw new TInvalidDataValueException('list_index_invalid',$index);
}
else
- throw new TInvalidOperation('list_readonly');
+ throw new TInvalidOperation('list_readonly',get_class($this));
}
/**
diff --git a/framework/Collections/TMap.php b/framework/Collections/TMap.php
index df580534..85da4f3c 100644
--- a/framework/Collections/TMap.php
+++ b/framework/Collections/TMap.php
@@ -128,7 +128,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess
if(!$this->_r)
$this->_d[$key]=$value;
else
- throw new TInvalidOperation('map_readonly');
+ throw new TInvalidOperation('map_readonly',get_class($this));
}
/**
@@ -151,7 +151,7 @@ class TMap extends TComponent implements IteratorAggregate,ArrayAccess
return null;
}
else
- throw new TInvalidOperation('map_readonly');
+ throw new TInvalidOperation('map_readonly',get_class($this));
}
/**
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index 87f6b1c2..449f8c96 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -135,7 +135,6 @@ class TErrorHandler extends TModule
else
$this->handleExternalError(500,$param);
}
-// exit(1);
}
/**