Error handling in HDK

   5425   1   1
User Avatar
Member
7 posts
Joined: Jan. 2008
Offline
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.
User Avatar
Member
8166 posts
Joined: July 2005
Offline
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”);
  • Quick Links