From d110ce3a331d27eafb49760b3a50498c3ed7a1ea Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Sun, 10 Oct 2010 00:51:36 -0400 Subject: Fix some unregistered Extensibles and include names in the thrown exception --- src/base.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/base.cpp') 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 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); -- cgit v1.3.1-10-gc9f91