aboutsummaryrefslogtreecommitdiffstats
path: root/src/base.cpp
diff options
context:
space:
mode:
authorGravatar Daniel De Graaf2010-10-10 00:51:36 -0400
committerGravatar Daniel De Graaf2010-10-10 00:54:30 -0400
commitd110ce3a331d27eafb49760b3a50498c3ed7a1ea (patch)
tree4ed02b766bc9dbca6367fbc525f91090d335bbb9 /src/base.cpp
parentRewrite TreeSocket timeout and lifecycle management (diff)
Fix some unregistered Extensibles and include names in the thrown exception
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/base.cpp b/src/base.cpp
index 1b76f58b3..dd195c20a 100644
--- a/src/base.cpp
+++ b/src/base.cpp
@@ -109,7 +109,7 @@ ExtensionItem::~ExtensionItem()
void* ExtensionItem::get_raw(const Extensible* container) const
{
if (!is_registered)
- throw CoreException("Attempting to use an unregistered Extensible!");
+ throw CoreException("Attempting to use an unregistered Extensible: " + name);
if (container->type_id != type_id)
throw CoreException("Type mismatch in Extensible object");
Extensible::ExtensibleStore::const_iterator i =
@@ -122,7 +122,7 @@ void* ExtensionItem::get_raw(const Extensible* container) const
void* ExtensionItem::set_raw(Extensible* container, void* value)
{
if (!is_registered)
- throw CoreException("Attempting to use an unregistered Extensible!");
+ throw CoreException("Attempting to use an unregistered Extensible: " + name);
if (container->type_id != type_id)
throw CoreException("Type mismatch in Extensible object");
std::pair<Extensible::ExtensibleStore::iterator,bool> rv =
@@ -142,7 +142,7 @@ void* ExtensionItem::set_raw(Extensible* container, void* value)
void* ExtensionItem::unset_raw(Extensible* container)
{
if (!is_registered)
- throw CoreException("Attempting to use an unregistered Extensible!");
+ throw CoreException("Attempting to use an unregistered Extensible: " + name);
if (container->type_id != type_id)
throw CoreException("Type mismatch in Extensible object");
Extensible::ExtensibleStore::iterator i = container->extensions.find(this);