summaryrefslogtreecommitdiff
path: root/gpr/source/lib/dng_sdk/dng_errors.h
blob: 44feb5a5dcba997aa6a9fb15668a01d8c4a4c1d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*****************************************************************************/
// Copyright 2006-2009 Adobe Systems Incorporated
// All Rights Reserved.
//
// NOTICE:  Adobe permits you to use, modify, and distribute this file in
// accordance with the terms of the Adobe license agreement accompanying it.
/*****************************************************************************/

/* $Id: //mondo/dng_sdk_1_4/dng_sdk/source/dng_errors.h#2 $ */ 
/* $DateTime: 2012/07/11 10:36:56 $ */
/* $Change: 838485 $ */
/* $Author: tknoll $ */

/** \file
 * Error code values.
 */

/*****************************************************************************/

#ifndef __dng_errors__
#define __dng_errors__

/*****************************************************************************/

#include "dng_types.h"

/*****************************************************************************/

/// Type for all errors used in DNG SDK. Generally held inside a dng_exception.

typedef int32 dng_error_code;

enum
	{
	dng_error_none					= 0,		//!< No error. Success.
	dng_error_unknown       		= 100000,	//!< Logic or program error or other unclassifiable error.
	dng_error_not_yet_implemented,				//!< Functionality requested is not yet implemented.
	dng_error_silent,							//!< An error which should not be signalled to user.
	dng_error_user_canceled,					//!< Processing stopped by user (or host application) request
	dng_error_host_insufficient,				//!< Necessary host functionality is not present.
	dng_error_memory,							//!< Out of memory.
	dng_error_bad_format,						//!< File format is not valid.
	dng_error_matrix_math,						//!< Matrix has wrong shape, is badly conditioned, or similar problem.
	dng_error_open_file,						//!< Could not open file.
	dng_error_read_file,						//!< Error reading file.
	dng_error_write_file,						//!< Error writing file.
	dng_error_end_of_file,						//!< Unexpected end of file.
	dng_error_file_is_damaged,					//!< File is damaged in some way.
	dng_error_image_too_big_dng,				//!< Image is too big to save as DNG.
	dng_error_image_too_big_tiff,				//!< Image is too big to save as TIFF.
	dng_error_unsupported_dng					//!< DNG version is unsupported.
	};
	
/*****************************************************************************/

#endif
	
/*****************************************************************************/