NetCDF  4.4.1
 All Data Structures Files Functions Variables Typedefs Macros Modules Pages
all-error-codes.md
1 NetCDF Error Code Listing {#nc-error-codes}
2 ==================
3 
4 \tableofcontents
5 
6 # NetCDF-3 Error Codes {#nc3-error-codes}
7 
8 ~~~~
9 #define NC_NOERR 0 // No Error
10 #define NC_EBADID (-33) // Not a netcdf id
11 #define NC_ENFILE (-34) // Too many netcdfs open
12 #define NC_EEXIST (-35) // netcdf file exists && NC_NOCLOBBER
13 #define NC_EINVAL (-36) // Invalid Argument
14 #define NC_EPERM (-37) // Write to read only
15 #define NC_ENOTINDEFINE (-38) // Operation not allowed in data mode
16 #define NC_EINDEFINE (-39) // Operation not allowed in define mode
17 #define NC_EINVALCOORDS (-40) // Index exceeds dimension bound
18 #define NC_EMAXDIMS (-41) // NC_MAX_DIMS exceeded
19 #define NC_ENAMEINUSE (-42) // String match to name in use
20 #define NC_ENOTATT (-43) // Attribute not found
21 #define NC_EMAXATTS (-44) // NC_MAX_ATTRS exceeded
22 #define NC_EBADTYPE (-45) // Not a netcdf data type
23 #define NC_EBADDIM (-46) // Invalid dimension id or name
24 #define NC_EUNLIMPOS (-47) // NC_UNLIMITED in the wrong index
25 #define NC_EMAXVARS (-48) // NC_MAX_VARS exceeded
26 #define NC_ENOTVAR (-49) // Variable not found
27 #define NC_EGLOBAL (-50) // Action prohibited on NC_GLOBAL varid
28 #define NC_ENOTNC (-51) // Not a netcdf file
29 #define NC_ESTS (-52) // In Fortran, string too short
30 #define NC_EMAXNAME (-53) // NC_MAX_NAME exceeded
31 #define NC_EUNLIMIT (-54) // NC_UNLIMITED size already in use
32 #define NC_ENORECVARS (-55) // nc_rec op when there are no record vars
33 #define NC_ECHAR (-56) // Attempt to convert between text & numbers
34 #define NC_EEDGE (-57) // Edge+start exceeds dimension bound
35 #define NC_ESTRIDE (-58) // Illegal stride
36 #define NC_EBADNAME (-59) // Attribute or variable name contains illegal characters
37 
38 // N.B. following must match value in ncx.h
39 
40 #define NC_ERANGE (-60) // Math result not representable
41 #define NC_ENOMEM (-61) // Memory allocation (malloc) failure
42 #define NC_EVARSIZE (-62) // One or more variable sizes violate format constraints
43 #define NC_EDIMSIZE (-63) // Invalid dimension size
44 #define NC_ETRUNC (-64) // File likely truncated or possibly corrupted
45 ~~~~
46 
47 # NetCDF-4 Error Codes {#nc4-error-codes}
48 
49 NetCDF-4 uses all error codes from NetCDF-3 (see section [NetCDF-3 Error
50 Codes](#NetCDF_002d3-Error-Codes)). The following additional error codes
51 were added for new errors unique to netCDF-4.
52 
53 ~~~~
54 #define NC_EHDFERR (-101)
55 #define NC_ECANTREAD (-102)
56 #define NC_ECANTWRITE (-103)
57 #define NC_ECANTCREATE (-104)
58 #define NC_EFILEMETA (-105)
59 #define NC_EDIMMETA (-106)
60 #define NC_EATTMETA (-107)
61 #define NC_EVARMETA (-108)
62 #define NC_ENOCOMPOUND (-109)
63 #define NC_EATTEXISTS (-110)
64 #define NC_ENOTNC4 (-111) // Attempting netcdf-4 operation on netcdf-3 file.
65 #define NC_ESTRICTNC3 (-112) // Attempting netcdf-4 operation on strict nc3 netcdf-4 file.
66 #define NC_EBADGRPID (-113) // Bad group id. Bad!
67 #define NC_EBADTYPEID (-114) // Bad type id.
68 #define NC_EBADFIELDID (-115) // Bad field id.
69 #define NC_EUNKNAME (-116)
70 ~~~~
71 
72 # DAP Error Codes {#dap-error-codes}
73 
74 If the DAP client is enabled, then the following additional error codes
75 may occur.
76 
77 ~~~~
78 #define NC_EDAP (-66) // Generic DAP error
79 #define NC_ECURL (-67) // Generic libcurl error
80 #define NC_EIO (-68) // Generic IO error
81 #define NC_ENODATA (-69) // Attempt to access variable with no data
82 #define NC_EDAPSVC (-70) // DAP Server side error
83 #define NC_EDAS (-71) // Malformed or inaccessible DAS
84 #define NC_EDDS (-72) // Malformed or inaccessible DDS
85 #define NC_EDATADDS (-73) // Malformed or inaccessible DATADDS
86 #define NC_EDAPURL (-74) // Malformed DAP URL
87 #define NC_EDAPCONSTRAINT (-75) // Malformed DAP Constraint
88 #define NC_EDAP (-66) // Generic DAP error
89 #define NC_ECURL (-67) // Generic libcurl error
90 #define NC_EIO (-68) // Generic IO error
91 #define NC_ENODATA (-69) // Attempt to access variable with no data
92 #define NC_EDAPSVC (-70) // DAP Server side error
93 #define NC_EDAS (-71) // Malformed or inaccessible DAS
94 #define NC_EDDS (-72) // Malformed or inaccessible DDS
95 #define NC_EDATADDS (-73) // Malformed or inaccessible DATADDS
96 #define NC_EDAPURL (-74) // Malformed DAP URL
97 #define NC_EDAPCONSTRAINT (-75) // Malformed DAP Constraint
98 ~~~~

Return to the Main Unidata NetCDF page.
Generated on Thu Aug 4 2016 17:52:18 for NetCDF. NetCDF is a Unidata library.