Search - User list
Full Version: Error handling in HDK
Root » Houdini Indie and Apprentice » Error handling in HDK
nestumkiller
Hi!

I was wondering how I can add custom error messages to the global error manager? I read the HDK doc, but it's not so clear about it, unfortunately. For a SOP I use:

addError(SOP_MESSAGE, “my message”)

but for an OBJ (I'm deriving from OBJ_Null) there is no such type of message. How can I do to add my own custom message?

Thanks.
edward
You should always be able to use this from any op type I think:
#include <OP/OP_Error.h>
opError(OP_ERR_ANYTHING, “my message”);
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB