#include <error.h>
Public Member Functions | |
virtual CoreObject * | clone () const |
Creates a shallow copy of this item. | |
ErrorObject (const CoreClass *cls, Error *err) | |
virtual void | gcMark (uint32 mark) |
Mark the items in the cache and the inner data, if it's garbageable. | |
Error * | getError () const |
virtual | ~ErrorObject () |
virtual Falcon::core::ErrorObject::~ErrorObject | ( | ) | [virtual] |
virtual CoreObject* Falcon::core::ErrorObject::clone | ( | ) | const [virtual] |
Creates a shallow copy of this item.
Will return zero if this item has a non-cloneable user-defined data, that is, it's not fully manageable by the language.
Clone operation requests the class ObjectManager to clone the user_data stored in this object, if any. In turn, the ObjectManager may ask the user_data, properly cast, to clone itself. If one of this operation fails or is not possible, then the method returns 0. The VM will eventually raise a CloneError to signal that the operation tried to clone a non manageable user-data object.
If this object has not a user_data, then the cloneing will automatically succeed.
Reimplemented from Falcon::CRObject.
virtual void Falcon::core::ErrorObject::gcMark | ( | uint32 | mark | ) | [virtual] |
Mark the items in the cache and the inner data, if it's garbageable.
If this object contains an external FalconData instance, it gets marked; anyhow, this function marks the cache items.
Reimplemented from Falcon::CacheObject.
Error* Falcon::core::ErrorObject::getError | ( | ) | const [inline] |
References Falcon::CoreObject::getUserData().