Houdini 12 Python Scripting with the Houdini Object Model hou

Base class for all exceptions in the hou module.

You can check if an exception instance is a Houdini-specific exception using isinstance(ex, hou.Error).

Methods

descriptionReturn a description of the class of exception. The description is not related to the exception instance.
exceptionTypeNameReturn the name of the exception type. Instances of different subclasses of hou.Error will return different names. Instances of the base class will return "Error".
instanceMessageReturn a message specific to the exception instance.
description(self) str

Return a description of the class of exception. The description is not related to the exception instance.

exceptionTypeName(self) str

Return the name of the exception type. Instances of different subclasses of hou.Error will return different names. Instances of the base class will return "Error".

You can also use str(e.__class__) to get the name of the subclass.

instanceMessage(self) str

Return a message specific to the exception instance.