HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
HUSD_ErrorScope.h
Go to the documentation of this file.
1
/*
2
* Copyright 2019 Side Effects Software Inc.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
*/
17
18
#ifndef __HUSD_ErrorScope_h__
19
#define __HUSD_ErrorScope_h__
20
21
#include "
HUSD_API.h
"
22
#include <
UT/UT_Error.h
>
23
#include <
UT/UT_UniquePtr.h
>
24
25
class
UT_ErrorManager
;
26
class
OP_Node
;
27
28
enum
HUSD_ErrorCodes
29
{
30
HUSD_ERR_STRING
= 0,
31
HUSD_ERR_LAYERS_STRIPPED
= 1,
32
HUSD_ERR_DUPLICATE_SUBLAYER
= 2,
33
HUSD_ERR_FIXED_INVALID_NAME
= 3,
34
HUSD_ERR_FIXED_INVALID_PATH
= 4,
35
HUSD_ERR_FIXED_INVALID_VARIANT_NAME
= 5,
36
HUSD_ERR_IGNORING_INSTANCE_PROXY
= 6,
37
HUSD_ERR_SAVED_FILE_WITH_NODE_PATH
= 7,
38
HUSD_ERR_SAVED_FILE
= 8,
39
HUSD_ERR_READ_LOCK_FAILED
= 9,
40
HUSD_ERR_WRITE_LOCK_FAILED
= 10,
41
HUSD_ERR_OVERRIDE_LOCK_FAILED
= 11,
42
HUSD_ERR_LAYER_LOCK_FAILED
= 12,
43
HUSD_ERR_CANT_FIND_LAYER
= 13,
44
HUSD_ERR_SAVED_FILE_WITH_EMPTY_DEFAULTPRIM
= 14,
45
HUSD_ERR_INVALID_DEFAULTPRIM
= 15,
46
HUSD_ERR_FAILED_TO_PARSE_PATTERN
= 16,
47
HUSD_ERR_CANT_FIND_PRIM
= 17,
48
HUSD_ERR_NOT_INSTANCER_PRIM
= 18,
49
HUSD_ERR_NOT_USD_PRIM
= 19,
50
HUSD_ERR_NOT_XFORMABLE_PRIM
= 20,
51
HUSD_ERR_NO_XFORM_FOUND
= 21,
52
HUSD_ERR_RELATIONSHIP_CANT_TARGET_SELF
= 22,
53
HUSD_ERR_CANT_COPY_PRIM_INTO_ITSELF
= 23,
54
HUSD_ERR_CANT_MOVE_PRIM_INTO_ITSELF
= 24,
55
HUSD_ERR_AUTO_REFERENCE_MISSES_SOME_DATA
= 25,
56
HUSD_ERR_DEFAULT_PRIM_IS_MISSING
= 26,
57
HUSD_ERR_LAYERS_SHARING_SAVE_PATH
= 27,
58
HUSD_ERR_GPRIM_MARKED_INSTANCEABLE
= 28,
59
HUSD_ERR_MIXED_SAVE_PATH_TIME_DEPENDENCY
= 29,
60
HUSD_ERR_UNABLE_TO_RELOCATE_REF
= 30,
61
HUSD_ERR_UNKNOWN_AUTO_COLLECTION
= 31,
62
HUSD_ERR_MISSING_MATERIAL_IN_TARGET
= 32,
63
HUSD_ERR_FAILED_TO_CREATE_ATTRIB
= 33,
64
HUSD_ERR_FAILED_TO_SET_ATTRIB
= 34,
65
HUSD_ERR_PRIM_IN_REFERENCE
= 35,
66
HUSD_ERR_CANT_FIND_PROPERTY
= 36,
67
HUSD_ERR_CANT_CREATE_PROPERTY
= 37,
68
HUSD_ERR_STAGE_LOCK_FAILED
= 38,
69
HUSD_ERR_PYTHON_ERROR
= 39,
70
HUSD_ERR_IGNORING_MISSING_EXPLICIT_PRIM
= 40,
71
HUSD_ERR_SUBSETS_ONLY_ON_MESH_PRIMITIVES
= 41,
72
HUSD_ERR_IGNORING_PROTOTYPE
= 42,
73
HUSD_ERR_LAYER_SAVE_FAILED
= 43,
74
HUSD_ERR_CANT_COPY_DIRECTLY_INTO_ROOT
= 44,
75
HUSD_ERR_EXISTENCE_TRACKING_PER_FRAME_FILES
= 45,
76
HUSD_PRIM_NOT_EDITABLE
= 46,
77
HUSD_ERR_INACTIVE_ANCESTOR_FOUND
= 47,
78
HUSD_ERR_SKIPPING_XFORM_ADJUST_INSTANCE_PROXY
= 48,
79
HUSD_ERR_FAILED_TO_APPLY_SCHEMA
= 49,
80
HUSD_ERR_INVALID_INTERPOLATION
= 50,
81
HUSD_ERR_TARGETED_MISSING_EXPLICIT_PRIM
= 51,
82
HUSD_ERR_CANT_FIND_MATERIAL
= 52,
83
HUSD_ERR_DEFAULT_VALUE_IS_VARYING
= 53,
84
HUSD_ERR_COMPACTING_INVALID_LAYER
= 54,
85
HUSD_ERR_COP_TEXTURE_NOT_FOUND
= 55,
86
HUSD_ERR_INVALID_VARIABLE_EXPRESSION
= 56,
87
HUSD_ERR_COP_TEXTURE_OVERWRITTEN
= 57,
88
};
89
90
class
HUSD_API
HUSD_ErrorScope
91
{
92
public
:
93
enum
CopyExistingScopeTag
{
94
CopyExistingScope
95
};
96
97
// Use the passed error manager if non-null, otherwise use the global one.
98
HUSD_ErrorScope
();
99
HUSD_ErrorScope
(
UT_ErrorManager
*mgr);
100
HUSD_ErrorScope
(
OP_Node
*node);
101
HUSD_ErrorScope
(CopyExistingScopeTag);
102
~
HUSD_ErrorScope
();
103
104
static
void
addMessage(
int
code,
const
char
*msg =
nullptr
);
105
static
void
addWarning(
int
code,
const
char
*msg =
nullptr
);
106
static
void
addError(
int
code,
const
char
*msg =
nullptr
);
107
108
static
UT_ErrorSeverity
usdOutputMinimumSeverity();
109
static
void
setUsdOutputMinimumSeverity(
UT_ErrorSeverity
severity
);
110
111
void
setErrorSeverityMapping(
UT_ErrorSeverity
usd_severity,
112
UT_ErrorSeverity
hou_severity);
113
114
private
:
115
class
husd_ErrorScopePrivate;
116
117
UT_UniquePtr<husd_ErrorScopePrivate>
myPrivate;
118
};
119
120
#endif
121
HUSD_ERR_FIXED_INVALID_NAME
Definition:
HUSD_ErrorScope.h:33
HUSD_ERR_CANT_COPY_DIRECTLY_INTO_ROOT
Definition:
HUSD_ErrorScope.h:74
HUSD_ERR_FIXED_INVALID_PATH
Definition:
HUSD_ErrorScope.h:34
HUSD_ERR_WRITE_LOCK_FAILED
Definition:
HUSD_ErrorScope.h:40
HUSD_ERR_UNABLE_TO_RELOCATE_REF
Definition:
HUSD_ErrorScope.h:60
HUSD_ERR_FAILED_TO_SET_ATTRIB
Definition:
HUSD_ErrorScope.h:64
HUSD_ERR_RELATIONSHIP_CANT_TARGET_SELF
Definition:
HUSD_ErrorScope.h:52
HUSD_ERR_IGNORING_INSTANCE_PROXY
Definition:
HUSD_ErrorScope.h:36
HUSD_ErrorCodes
HUSD_ErrorCodes
Definition:
HUSD_ErrorScope.h:28
HUSD_PRIM_NOT_EDITABLE
Definition:
HUSD_ErrorScope.h:76
HUSD_ERR_DEFAULT_VALUE_IS_VARYING
Definition:
HUSD_ErrorScope.h:83
HUSD_ERR_UNKNOWN_AUTO_COLLECTION
Definition:
HUSD_ErrorScope.h:61
HUSD_ERR_FAILED_TO_APPLY_SCHEMA
Definition:
HUSD_ErrorScope.h:79
HUSD_API
#define HUSD_API
Definition:
HUSD_API.h:32
UT_ErrorSeverity
UT_ErrorSeverity
Definition:
UT_Error.h:25
HUSD_ERR_EXISTENCE_TRACKING_PER_FRAME_FILES
Definition:
HUSD_ErrorScope.h:75
HUSD_ERR_SAVED_FILE_WITH_NODE_PATH
Definition:
HUSD_ErrorScope.h:37
HUSD_ERR_DEFAULT_PRIM_IS_MISSING
Definition:
HUSD_ErrorScope.h:56
HUSD_ERR_PYTHON_ERROR
Definition:
HUSD_ErrorScope.h:69
HUSD_ERR_LAYERS_SHARING_SAVE_PATH
Definition:
HUSD_ErrorScope.h:57
HUSD_ERR_NOT_XFORMABLE_PRIM
Definition:
HUSD_ErrorScope.h:50
HUSD_ERR_FAILED_TO_PARSE_PATTERN
Definition:
HUSD_ErrorScope.h:46
HUSD_ERR_FIXED_INVALID_VARIANT_NAME
Definition:
HUSD_ErrorScope.h:35
UT_UniquePtr
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
Definition:
UT_UniquePtr.h:39
HUSD_ERR_CANT_FIND_LAYER
Definition:
HUSD_ErrorScope.h:43
HUSD_ERR_SAVED_FILE
Definition:
HUSD_ErrorScope.h:38
HUSD_ERR_CANT_FIND_MATERIAL
Definition:
HUSD_ErrorScope.h:82
HUSD_ERR_LAYERS_STRIPPED
Definition:
HUSD_ErrorScope.h:31
HUSD_ERR_NO_XFORM_FOUND
Definition:
HUSD_ErrorScope.h:51
HUSD_ERR_INVALID_DEFAULTPRIM
Definition:
HUSD_ErrorScope.h:45
HUSD_ErrorScope::CopyExistingScopeTag
CopyExistingScopeTag
Definition:
HUSD_ErrorScope.h:93
HUSD_ERR_PRIM_IN_REFERENCE
Definition:
HUSD_ErrorScope.h:65
HUSD_ERR_LAYER_SAVE_FAILED
Definition:
HUSD_ErrorScope.h:73
HUSD_ERR_IGNORING_MISSING_EXPLICIT_PRIM
Definition:
HUSD_ErrorScope.h:70
HUSD_ERR_OVERRIDE_LOCK_FAILED
Definition:
HUSD_ErrorScope.h:41
OP_Node
Definition:
OP_Node.h:503
HUSD_ErrorScope
Definition:
HUSD_ErrorScope.h:90
HUSD_ERR_IGNORING_PROTOTYPE
Definition:
HUSD_ErrorScope.h:72
HUSD_ERR_TARGETED_MISSING_EXPLICIT_PRIM
Definition:
HUSD_ErrorScope.h:81
HUSD_ERR_GPRIM_MARKED_INSTANCEABLE
Definition:
HUSD_ErrorScope.h:58
HUSD_ERR_LAYER_LOCK_FAILED
Definition:
HUSD_ErrorScope.h:42
HUSD_API.h
HUSD_ERR_CANT_CREATE_PROPERTY
Definition:
HUSD_ErrorScope.h:67
severity
GLenum GLenum severity
Definition:
glcorearb.h:2539
HUSD_ERR_SKIPPING_XFORM_ADJUST_INSTANCE_PROXY
Definition:
HUSD_ErrorScope.h:78
HUSD_ERR_STRING
Definition:
HUSD_ErrorScope.h:30
HUSD_ERR_COP_TEXTURE_OVERWRITTEN
Definition:
HUSD_ErrorScope.h:87
HUSD_ERR_MIXED_SAVE_PATH_TIME_DEPENDENCY
Definition:
HUSD_ErrorScope.h:59
HUSD_ERR_COP_TEXTURE_NOT_FOUND
Definition:
HUSD_ErrorScope.h:85
UT_UniquePtr.h
HUSD_ERR_CANT_MOVE_PRIM_INTO_ITSELF
Definition:
HUSD_ErrorScope.h:54
HUSD_ERR_NOT_USD_PRIM
Definition:
HUSD_ErrorScope.h:49
HUSD_ERR_NOT_INSTANCER_PRIM
Definition:
HUSD_ErrorScope.h:48
HUSD_ERR_COMPACTING_INVALID_LAYER
Definition:
HUSD_ErrorScope.h:84
HUSD_ERR_AUTO_REFERENCE_MISSES_SOME_DATA
Definition:
HUSD_ErrorScope.h:55
UT_ErrorManager
A global error manager scope.
Definition:
UT_ErrorManager.h:33
HUSD_ERR_SAVED_FILE_WITH_EMPTY_DEFAULTPRIM
Definition:
HUSD_ErrorScope.h:44
HUSD_ERR_CANT_FIND_PROPERTY
Definition:
HUSD_ErrorScope.h:66
HUSD_ERR_SUBSETS_ONLY_ON_MESH_PRIMITIVES
Definition:
HUSD_ErrorScope.h:71
HUSD_ERR_INVALID_VARIABLE_EXPRESSION
Definition:
HUSD_ErrorScope.h:86
HUSD_ERR_STAGE_LOCK_FAILED
Definition:
HUSD_ErrorScope.h:68
UT_Error.h
HUSD_ERR_CANT_COPY_PRIM_INTO_ITSELF
Definition:
HUSD_ErrorScope.h:53
HUSD_ERR_INVALID_INTERPOLATION
Definition:
HUSD_ErrorScope.h:80
HUSD_ERR_INACTIVE_ANCESTOR_FOUND
Definition:
HUSD_ErrorScope.h:77
HUSD_ERR_CANT_FIND_PRIM
Definition:
HUSD_ErrorScope.h:47
HUSD_ERR_DUPLICATE_SUBLAYER
Definition:
HUSD_ErrorScope.h:32
HUSD_ERR_READ_LOCK_FAILED
Definition:
HUSD_ErrorScope.h:39
HUSD_ERR_MISSING_MATERIAL_IN_TARGET
Definition:
HUSD_ErrorScope.h:62
HUSD_ERR_FAILED_TO_CREATE_ATTRIB
Definition:
HUSD_ErrorScope.h:63
HUSD
HUSD_ErrorScope.h
Generated on Sun Nov 17 2024 03:01:22 for HDK by
1.8.6