Redirecting Exception code to a custom handler

   186   1   0
User Avatar
Member
11 posts
Joined: March 2024
Offline
Hello,

I'm looking for a way to catch exception in Houdini,
I already did that in Maya in the past using ` maya.utils.formatGuiException` ..
Wondering if there a way to setup a custom error (exception) handler within Houdini ?

I used that in Maya for example :

if app == 'maya' :
    from maya import cmds
    import maya.utils
    cmds.scriptEditorInfo( historyFilename = "d:/logFile.log", writeHistory = True )
    sys.excepthook                = ui_exceptionHandler
    maya.utils.formatGuiException = ui_exceptionHandler
else :
     sys.excepthook           = handler 
User Avatar
Member
11 posts
Joined: March 2024
Offline
Or looking also a way to add a button to this native Exception error window (ignore the error description)
Edited by sebd3dvfx - May 10, 2024 07:28:56

Attachments:
Ge1345CecJ.png (39.1 KB)

  • Quick Links