HOM/HOM_Errors.h File Reference

#include "HOM_API.h"
#include "HOM_Defines.h"
#include <string>

Go to the source code of this file.

Defines

#define SIMPLE_EXCEPTION(exception_name, description_value)
#define SIMPLE_EXCEPTION_DFLT_INSTANCE(exception_name, description_value, default_instance_value)

Functions

 SWIGOUT (%rename(SystemExit) HOM_SystemExit;) class HOM_API HOM_SystemExit
 SWIGOUT (%rename(Error) HOM_Error;) class HOM_API HOM_Error
 SIMPLE_EXCEPTION (NotAvailable,"Not available in this context") SIMPLE_EXCEPTION(ObjectWasDeleted
Attempt to access an object
that no longer exists in
Houdini 
SIMPLE_EXCEPTION (InvalidInput,"Invalid input") SIMPLE_EXCEPTION(InvalidSize
Attempt to access an object
that no longer exists in
Houdini Invalid size 
SIMPLE_EXCEPTION (TypeError,"Invalid type") SIMPLE_EXCEPTION(ValueError
Attempt to access an object
that no longer exists in
Houdini Invalid size Invalid
value 
SIMPLE_EXCEPTION (OperationFailed,"The attempted operation failed") SIMPLE_EXCEPTION(InvalidNodeType
Attempt to access an object
that no longer exists in
Houdini Invalid size Invalid
value The node type is invalid 
SIMPLE_EXCEPTION (InitScriptFailed,"Node initialization script failed") SIMPLE_EXCEPTION(MatchDefinitionError
Attempt to access an object
that no longer exists in
Houdini Invalid size Invalid
value The node type is invalid
Failed to match node type
definition 
SIMPLE_EXCEPTION_DFLT_INSTANCE (PermissionError,"","Failed to modify node or parameter because of a permission ""error. Possible causes include locked assets, takes, ""product permissions or user specified permissions") SIMPLE_EXCEPTION(GeometryPermissionError
Attempt to access an object
that no longer exists in
Houdini Invalid size Invalid
value The node type is invalid
Failed to match node type
definition Geometry is read
only 
SIMPLE_EXCEPTION (KeyframeValueNotSet,"This keyframe value is not set") SIMPLE_EXCEPTION(OperationInterrupted


Define Documentation

#define SIMPLE_EXCEPTION ( exception_name,
description_value   ) 

Value:

SWIGOUT(%rename(exception_name) HOM_ ## exception_name;) \
class HOM_API HOM_ ## exception_name : public HOM_Error \
{ \
public: \
    HOM_ ## exception_name(const char* instance_message = "") \
    : HOM_Error(instance_message) \
    {} \
    virtual std::string exceptionTypeName() { return #exception_name; } \
    virtual std::string description() { return description_value; } \
    SWIGOUT(std::string __repr__();) \
    SWIGOUT(std::string __str__();) \
};

Definition at line 96 of file HOM_Errors.h.

#define SIMPLE_EXCEPTION_DFLT_INSTANCE ( exception_name,
description_value,
default_instance_value   ) 

Value:

SWIGOUT(%rename(exception_name) HOM_ ## exception_name;) \
class HOM_API HOM_ ## exception_name : public HOM_Error \
{ \
public: \
    HOM_ ## exception_name(const char* instance_message = "") \
    : HOM_Error(instance_message) \
    {} \
    virtual std::string exceptionTypeName() { return #exception_name; } \
    virtual std::string description() { return description_value; } \
    virtual std::string instanceMessage() \
    { \
        std::string instance_msg = HOM_Error::instanceMessage(); \
        if (!instance_msg.size()) instance_msg = default_instance_value; \
        return instance_msg; \
    } \
    SWIGOUT(std::string __repr__();) \
    SWIGOUT(std::string __str__();) \
};

Definition at line 111 of file HOM_Errors.h.


Function Documentation

Attempt to access an object that no longer exists in Houdini Invalid size Invalid value The node type is invalid Failed to match node type definition Geometry is read only SIMPLE_EXCEPTION ( KeyframeValueNotSet  ,
"This keyframe value is not set"   
)

Attempt to access an object that no longer exists in Houdini Invalid size Invalid value The node type is invalid SIMPLE_EXCEPTION ( InitScriptFailed  ,
"Node initialization script failed"   
)

Attempt to access an object that no longer exists in Houdini Invalid size Invalid value SIMPLE_EXCEPTION ( OperationFailed  ,
"The attempted operation failed"   
)

Attempt to access an object that no longer exists in Houdini Invalid size SIMPLE_EXCEPTION ( TypeError  ,
"Invalid type  
)

Attempt to access an object that no longer exists in Houdini SIMPLE_EXCEPTION ( InvalidInput  ,
"Invalid input  
)

SIMPLE_EXCEPTION ( NotAvailable  ,
"Not available in this context"   
)

Attempt to access an object that no longer exists in Houdini Invalid size Invalid value The node type is invalid Failed to match node type definition SIMPLE_EXCEPTION_DFLT_INSTANCE ( PermissionError  ,
""  ,
"Failed to modify node or parameter because of a permission ""error. Possible causes include locked   assets,
takes  ,
" "product permissions or user specified permissions"   
)

SWIGOUT ( %rename(Error) HOM_Error;   ) 

Definition at line 46 of file HOM_Errors.h.

SWIGOUT ( %rename(SystemExit) HOM_SystemExit;   ) 

Definition at line 27 of file HOM_Errors.h.


Generated on Wed May 23 00:10:19 2012 for HDK by  doxygen 1.5.9