HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OP_Error.h
Go to the documentation of this file.
1 #ifndef __OP_Error__
2 #define __OP_Error__
3 
4 #include <UT/UT_ErrorManager.h>
5 
7 
9 {
10  //
11  // Cooking errors
12 
13  OP_ERR_CHAN_ERROR = 0, // 0: Evaluation of a channel failed
14  // Get the error from the channel lib
15  OP_ERR_INVALID_SRC, // 1: No source or source has error
16  OP_ERR_NUMSRC_TOO_FEW, // 2: Incorrect number of sources
17  OP_ERR_NUMSRC_TOO_MANY, // 3: Incorrect number of sources
18  OP_ERR_RECURSION, // 4: Recursion into OP cooking
19  OP_ERR_INTERRUPTED, // 5: Cook was interrupted
20 
21  //
22  // File I/O errors
23 
24  OP_ERR_UNKNOWN_OP, // 6: Unknown operator on load
25  OP_ERR_CORRUPT_FILE, // 7: Corrupt file, data wasn't what we expected
26  OP_ERR_MISSING_PARENT, // 8: Missing parent of node to load
27  OP_ERR_BAD_PARENT, // 9: Bad parent (i.e. parent is not a network)
28 
29  OP_ERR_BAD_NODETYPE, // 10: Bad node type (warning)
30  OP_ERR_OPSAVE_NOT_HIP, // 11: File was created by opsave, not mwrite.
31 
34 
35  OP_BAD_OPINPUT_READ, // 14: Bad operator-input
36  OP_ERROR_SAVE_INTRINSIC_FAILED,// 15: Operator Save Intrinsic data failed
37  OP_ERROR_OPERATOR_SAVE_FAILED, // 16: Operator Save failed
38 
42  OP_ERR_UNIX_CMD, // 20: Unix command execution failed
43  OP_ERR_UNIX_GET, // 21: Read from unix command failed
44 
47  OP_MACROS_ONLY, // 24: Operation is only valid in a macro/sub-net
48  OP_MACRO_INVALID, // 25: Operation is not valid in a macro/sub-net
49 
50  OP_WARNING_RENAME_EXPORT, // 26: Rename operation changed export
51 
52  OP_BAD_CBGROUP_VERSION, // 27: Clipboard group load had bad version #
53  OP_BAD_CBGROUP_DEFINITION, // 28: Error in clipboard group file
54 
55  OP_NO_NETWORK, // 29: No network set for %s
56  OP_NOTHING_TO_COPY, // 30: Nothing to copy.
57  OP_COPY_FAILED, // 31: Copy failed
58  OP_NOTHING_TO_PASTE, // 32: Nothing to paste.
59 
60  OP_ERR_PERMISSION, // 33: Permission error
61 
62  OP_ERR_ANYTHING, // 34: %s
63 
64  OP_ERR_LOAD_COOK, // 35: Error loading cooked data
65 
66  OP_WARN_BAD_CHREF, // 36: Bad channel reference
67  OP_WARN_RECURSIVE_CHREF, // 37: Recursive channel reference
68 
69  OP_WARN_COULDNT_DELETE, // 38: Couldn't delete a particular node
70 
71  OP_WARN_ERROR_SYNCING, // 39: Error syncing child with its definition.
72 
73  OP_WARN_COULDNT_DELETE_NETBOX, // 40: Couldn't delete a particular netbox
74  OP_ERROR_NETBOX_SAVE_FAILED, // 41: Network Box Save failed
75  OP_WARN_STAMP_TOKEN_CONFLICT, // 42: Potential stamp conflict: %s.
76  OP_WARN_PARAM_DEPRECATED, // 43: Use of param() is deprecated.
77  OP_WARN_DELETE_CHANNEL, // 44: Deleted an unknown channel.
78  OP_WARN_SPARE_CHANNEL, // 45: Made spare parm for an unknown channel.
79 
80  OP_WARN_DUMMY_DEFINITION, // 46: Node is using an incomplete definition.
81  OP_WARN_DUMMY_CHILD, // 47: "%s" is using incomplete definition.
82  OP_WARN_DUMMY_OPERATORS, // 48: Operators using incomplete definitions:%s
83 
84  OP_PYTHON_ERROR, // 49: Python error: %s.
85 
86  OP_LOADING_LOCKED, // 50: Ignoring data for locked node: %s
87 
88  OP_ERROR_POSTIT_LOAD_FAILED, // 51: Post-it Note load failed
89  OP_ERROR_POSTIT_SAVE_FAILED, // 52: Post-it Note save failed
90 
91  OP_WARN_BAD_OPREF, // 53: Bad node reference
92 
93  OP_ERR_TRANSFORM, // 54: Error cooking transform of %s
94 
95  OP_ERR_IGNORED_EXTRA_INPUTS, // 55: Ignored extraneous inputs on load
96 
97  OP_ERR_INVALID_LICENSE, // 56: Asset has invalid license
98 
99  OP_WARN_LOAD_OP_CONFLICT, // 57: Loaded node with conflicting name
100 
101  OP_ERR_RECURSIVE_NODETYPE, // 58: Recursive node type (nested assets)
102 
103  OP_WARN_COULDNT_DELETE_POSTIT, // 59: Couldn't delete a particular postit
104  OP_WARN_COULDNT_DELETE_DOT, // 60: Couldn't delete a particular dot
105 
106  OP_ERROR_DOT_LOAD_FAILED, // 61: Dot load failed
107 
108  OP_UNKNOWN_CONTEXT_OPTION, // 62: Expression queried unknown context option
109  OP_CONTEXT_OPTION_IS_STRING,// 63: Expression queried string option as int
110  OP_USING_LAST_COOK_CONTEXT_OPTION, // 64: Expression returned a context
111  // option value from the last cook
112 
114 };
115 
116 #endif
OP_ErrorCodes
Definition: OP_Error.h:8
UT_ErrorSeverity OP_ERROR
Definition: OP_Error.h:6
UT_ErrorSeverity
Definition: UT_Error.h:25