RenderManAPI  24.0
XcptErrorCodes.h
Go to the documentation of this file.
1 /*
2 # ------------------------------------------------------------------------------
3 #
4 # Copyright (c) 2020 Pixar. All rights reserved.
5 #
6 # The information in this file (the "Software") is provided for the exclusive
7 # use of the software licensees of Pixar ("Licensees"). Licensees have the
8 # right to incorporate the Software into other products for use by other
9 # authorized software licensees of Pixar, without fee. Except as expressly
10 # permitted herein, the Software may not be disclosed to third parties, copied
11 # or duplicated in any form, in whole or in part, without the prior written
12 # permission of Pixar.
13 #
14 # The copyright notices in the Software and this entire statement, including the
15 # above license grant, this restriction and the following disclaimer, must be
16 # included in all copies of the Software, in whole or in part, and all permitted
17 # derivative works of the Software, unless such copies or derivative works are
18 # solely in the form of machine-executable object code generated by a source
19 # language processor.
20 #
21 # PIXAR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
22 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL PIXAR BE
23 # LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
24 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
25 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
26 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. IN NO CASE WILL
27 # PIXAR'S TOTAL LIABILITY FOR ALL DAMAGES ARISING OUT OF OR IN CONNECTION WITH
28 # THE USE OR PERFORMANCE OF THIS SOFTWARE EXCEED $50.
29 #
30 # Pixar
31 # 1200 Park Ave
32 # Emeryville CA 94608
33 #
34 # ------------------------------------------------------------------------------
35 */
36 
37 #ifndef XCPT_ERROR_CODES_H
38 #define XCPT_ERROR_CODES_H /* RenderMan Interface Error Codes */
39 
40 
41 
42 /* Error severity levels */
43 #define RIE_INFO 0 /* Rendering stats and other info */
44 #define RIE_WARNING 1 /* Something seems wrong, maybe okay */
45 #define RIE_ERROR 2 /* Problem. Results may be wrong */
46 #define RIE_SEVERE 3 /* So bad you should probably abort */
47 #define RIE_ONCE 128 /* */
48 #define RIE_MSGID_ONCE 256 /* */
49 #define RIE_SEVERITY_MASK 127 /* */
50 
51 
52 /*
53  Error Codes
54  1 - 10 System and File Errors
55  11 - 20 Program Limitations
56  21 - 40 State Errors
57  41 - 60 Parameter and Protocol Errors
58  61 - 80 Execution Errors
59  */
60 #define RIE_NOERROR 0 /* */
61 #define RIE_NOMEM 1 /* Out of memory */
62 #define RIE_SYSTEM 2 /* Miscellaneous system error */
63 #define RIE_NOFILE 3 /* File nonexistent */
64 #define RIE_BADFILE 4 /* Bad file format */
65 #define RIE_VERSION 5 /* File version mismatch */
66 #define RIE_DISKFULL 6 /* Target disk is full */
67 #define RIE_INCAPABLE 11 /* Optional RI feature */
68 #define RIE_UNIMPLEMENT 12 /* Unimplemented feature */
69 #define RIE_LIMIT 13 /* Arbitrary program limit */
70 #define RIE_BUG 14 /* Probably a bug in renderer */
71 #define RIE_NOTSTARTED 23 /* RiBegin not called */
72 #define RIE_NESTING 24 /* Bad begin-end nesting */
73 #define RIE_NOTOPTIONS 25 /* Invalid state for options */
74 #define RIE_NOTATTRIBS 26 /* Invalid state for attribs */
75 #define RIE_NOTPRIMS 27 /* Invalid state for primitives */
76 #define RIE_ILLSTATE 28 /* Other invalid state */
77 #define RIE_BADMOTION 29 /* Badly formed motion block */
78 #define RIE_BADSOLID 30 /* Badly formed solid block */
79 #define RIE_BADTOKEN 41 /* Invalid token for request */
80 #define RIE_RANGE 42 /* Parameter out of range */
81 #define RIE_CONSISTENCY 43 /* Parameters inconsistent */
82 #define RIE_BADHANDLE 44 /* Bad object/light handle */
83 #define RIE_NOSHADER 45 /* Can't load requested shader */
84 #define RIE_MISSINGDATA 46 /* Required parameters not provided */
85 #define RIE_SYNTAX 47 /* Declare type syntax error */
86 #define RIE_SKIPPING 51 /* Inactive 'If' branch, no rendering */
87 #define RIE_MATH 61 /* Zerodivide, noninvert matrix, etc. */
88 #define RIE_OSLSHADING 71 /* OpenShadingLanguage Runtime Error */
89 
90 
91 #endif /* XCPT_ERROR_CODES_H */