1 /*
2  * exempi-d - exempi.xmperrors
3  *
4  * Bindings by Les De Ridder <les@lesderid.net>
5  *
6  * Copyright (C) 2007-2016 Hubert Figuiere
7  * Copyright 2002-2007 Adobe Systems Incorporated
8  * All rights reserved.
9  *
10  * Redistribution and use in source and binary forms, with or without
11  * modification, are permitted provided that the following conditions
12  * are met:
13  *
14  * 1 Redistributions of source code must retain the above copyright
15  * notice, this list of conditions and the following disclaimer.
16  *
17  * 2 Redistributions in binary form must reproduce the above copyright
18  * notice, this list of conditions and the following disclaimer in the
19  * documentation and/or other materials provided with the
20  * distribution.
21  *
22  * 3 Neither the name of the Authors, nor the names of its
23  * contributors may be used to endorse or promote products derived
24  * from this software wit hout specific prior written permission.
25  *
26  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
30  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
31  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
32  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
33  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
35  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
36  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
37  * OF THE POSSIBILITY OF SUCH DAMAGE.
38  */
39 
40 module exempi.xmperrors;
41 
42 extern(C):
43 
44 enum {
45 	/* More or less generic error codes. */
46 	XMPErr_Unknown          =   0,
47 	XMPErr_TBD              =   -1,
48 	XMPErr_Unavailable      =   -2,
49 	XMPErr_BadObject        =   -3,
50 	XMPErr_BadParam         =   -4,
51 	XMPErr_BadValue         =   -5,
52 	XMPErr_AssertFailure    =   -6,
53 	XMPErr_EnforceFailure   =   -7,
54 	XMPErr_Unimplemented    =   -8,
55 	XMPErr_InternalFailure  =   -9,
56 	XMPErr_Deprecated       =  -10,
57 	XMPErr_ExternalFailure  =  -11,
58 	XMPErr_UserAbort        =  -12,
59 	XMPErr_StdException     =  -13,
60 	XMPErr_UnknownException =  -14,
61 	XMPErr_NoMemory         =  -15,
62 
63 	/* More specific parameter error codes.  */
64 	XMPErr_BadSchema        = -101,
65 	XMPErr_BadXPath         = -102,
66 	XMPErr_BadOptions       = -103,
67 	XMPErr_BadIndex         = -104,
68 	XMPErr_BadIterPosition  = -105,
69 	XMPErr_BadParse         = -106,
70 	XMPErr_BadSerialize     = -107,
71 	XMPErr_BadFileFormat    = -108,
72 	XMPErr_NoFileHandler    = -109,
73 	XMPErr_TooLargeForJPEG  = -110,
74 
75 	/* File format and internal structure error codes. */
76 	XMPErr_BadXML           = -201,
77 	XMPErr_BadRDF           = -202,
78 	XMPErr_BadXMP           = -203,
79 	XMPErr_EmptyIterator    = -204,
80 	XMPErr_BadUnicode       = -205,
81 	XMPErr_BadTIFF          = -206,
82 	XMPErr_BadJPEG          = -207,
83 	XMPErr_BadPSD           = -208,
84 	XMPErr_BadPSIR          = -209,
85 	XMPErr_BadIPTC          = -210,
86 	XMPErr_BadMPEG          = -211
87 };