hou.Error class

Base class for all exceptions in the hou module.

Subclasses: hou.PermissionError , hou.LoadWarning , hou.GeometryPermissionError , hou.ObjectWasDeleted , hou.NotAvailable , hou.SystemExit , hou.InvalidInput , hou.InvalidSize , hou.KeyframeValueNotSet , hou.MatchDefinitionError , hou.TypeError , hou.InvalidNodeType , hou.InitScriptFailed , hou.OperationFailed , hou.OperationInterrupted , hou.ValueError

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

Methods

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.