2.7 Error codes

Many functions require you to return a Hollywood error code to indicate success or failure. All standard error codes are defined in hollywood/errors.h but you can also register custom error codes using To indicate success, you have to return 0 which is equivalent to the constant ERR_NONE.

A special error code is ERR_USERABORT. If you return this error code, Hollywood will immediately shut down and quit without showing any error message.

Starting with Hollywood 11, there is the new ERR_ABORT special error code. This error code allows plugin code to abort a Hollywood function without showing an error and without terminating Hollywood. It is similar to ERR_USERABORT but the latter will cause a program termination whereas ERR_ABORT will only abort the Hollywood function that is currently being executed.


Show TOC