1 | /*****************************************************************************/ |
2 | // Copyright 2006-2009 Adobe Systems Incorporated |
3 | // All Rights Reserved. |
4 | // |
5 | // NOTICE: Adobe permits you to use, modify, and distribute this file in |
6 | // accordance with the terms of the Adobe license agreement accompanying it. |
7 | /*****************************************************************************/ |
8 | |
9 | /* $Id: //mondo/dng_sdk_1_4/dng_sdk/source/dng_errors.h#2 $ */ |
10 | /* $DateTime: 2012/07/11 10:36:56 $ */ |
11 | /* $Change: 838485 $ */ |
12 | /* $Author: tknoll $ */ |
13 | |
14 | /** \file |
15 | * Error code values. |
16 | */ |
17 | |
18 | /*****************************************************************************/ |
19 | |
20 | #ifndef __dng_errors__ |
21 | #define __dng_errors__ |
22 | |
23 | /*****************************************************************************/ |
24 | |
25 | #include "dng_types.h" |
26 | |
27 | /*****************************************************************************/ |
28 | |
29 | /// Type for all errors used in DNG SDK. Generally held inside a dng_exception. |
30 | |
31 | typedef int32 dng_error_code; |
32 | |
33 | enum |
34 | { |
35 | dng_error_none = 0, //!< No error. Success. |
36 | dng_error_unknown = 100000, //!< Logic or program error or other unclassifiable error. |
37 | dng_error_not_yet_implemented, //!< Functionality requested is not yet implemented. |
38 | dng_error_silent, //!< An error which should not be signalled to user. |
39 | dng_error_user_canceled, //!< Processing stopped by user (or host application) request |
40 | dng_error_host_insufficient, //!< Necessary host functionality is not present. |
41 | dng_error_memory, //!< Out of memory. |
42 | dng_error_bad_format, //!< File format is not valid. |
43 | dng_error_matrix_math, //!< Matrix has wrong shape, is badly conditioned, or similar problem. |
44 | dng_error_open_file, //!< Could not open file. |
45 | dng_error_read_file, //!< Error reading file. |
46 | dng_error_write_file, //!< Error writing file. |
47 | dng_error_end_of_file, //!< Unexpected end of file. |
48 | dng_error_file_is_damaged, //!< File is damaged in some way. |
49 | dng_error_image_too_big_dng, //!< Image is too big to save as DNG. |
50 | dng_error_image_too_big_tiff, //!< Image is too big to save as TIFF. |
51 | dng_error_unsupported_dng //!< DNG version is unsupported. |
52 | }; |
53 | |
54 | /*****************************************************************************/ |
55 | |
56 | #endif |
57 | |
58 | /*****************************************************************************/ |
59 | |