5#ifndef NcExceptionClasses
6#define NcExceptionClasses
27 NcException(
const char* complaint,
const char* fileName,
int lineNumber);
28 NcException(
int errorCode,
const char* complaint,
const char* fileName,
int lineNumber);
32 const char* what()
const throw();
33 int errorCode()
const throw();
35 std::string* what_msg;
44 NcBadId(
const char* complaint,
const char* file,
int line);
51 NcNFile(
const char* complaint,
const char* file,
int line);
58 NcExist(
const char* complaint,
const char* file,
int line);
65 NcInvalidArg(
const char* complaint,
const char* file,
int line);
106 NcMaxDims(
const char* complaint,
const char* file,
int line);
113 NcNameInUse(
const char* complaint,
const char* file,
int line);
120 NcNotAtt(
const char* complaint,
const char* file,
int line);
127 NcMaxAtts(
const char* complaint,
const char* file,
int line);
134 NcBadType(
const char* complaint,
const char* file,
int line);
141 NcBadDim(
const char* complaint,
const char* file,
int line);
148 NcUnlimPos(
const char* complaint,
const char* file,
int line);
155 NcMaxVars(
const char* complaint,
const char* file,
int line);
162 NcNotVar(
const char* complaint,
const char* file,
int line);
169 NcGlobal(
const char* complaint,
const char* file,
int line);
176 NcNotNCF(
const char* complaint,
const char* file,
int line);
183 NcSts(
const char* complaint,
const char* file,
int line);
190 NcMaxName(
const char* complaint,
const char* file,
int line);
197 NcUnlimit(
const char* complaint,
const char* file,
int line);
204 NcNoRecVars(
const char* complaint,
const char* file,
int line);
211 NcChar(
const char* complaint,
const char* file,
int line);
218 NcEdge(
const char* complaint,
const char* file,
int line);
225 NcStride(
const char* complaint,
const char* file,
int line);
232 NcBadName(
const char* complaint,
const char* file,
int line);
239 NcRange(
const char* complaint,
const char* file,
int line);
246 NcNoMem(
const char* complaint,
const char* file,
int line);
253 NcVarSize(
const char* complaint,
const char* file,
int line);
260 NcDimSize(
const char* complaint,
const char* file,
int line);
267 NcTrunc(
const char* complaint,
const char* file,
int line);
274 NcHdfErr(
const char* complaint,
const char* file,
int line);
281 NcCantRead(
const char* complaint,
const char* file,
int line);
288 NcCantWrite(
const char* complaint,
const char* file,
int line);
295 NcCantCreate(
const char* complaint,
const char* file,
int line);
302 NcFileMeta(
const char* complaint,
const char* file,
int line);
309 NcDimMeta(
const char* complaint,
const char* file,
int line);
316 NcAttMeta(
const char* complaint,
const char* file,
int line);
323 NcVarMeta(
const char* complaint,
const char* file,
int line);
330 NcNoCompound(
const char* complaint,
const char* file,
int line);
337 NcAttExists(
const char* complaint,
const char* file,
int line);
344 NcNotNc4(
const char* complaint,
const char* file,
int line);
351 NcStrictNc3(
const char* complaint,
const char* file,
int line);
358 NcBadGroupId(
const char* complaint,
const char* file,
int line);
365 NcBadTypeId(
const char* complaint,
const char* file,
int line);
372 NcBadFieldId(
const char* complaint,
const char* file,
int line);
379 NcUnknownName(
const char* complaint,
const char* file,
int line);
386 NcEnoGrp(
const char* complaint,
const char* file,
int line);
397 NcNullGrp(
const char* complaint,
const char* file,
int line);
408 NcNullType(
const char* complaint,
const char* file,
int line);
419 NcNullDim(
const char* complaint,
const char* file,
int line);
429 NcElateDef(
const char* complaint,
const char* file,
int line);
Thrown if attribute exists.
Thrown if an invalid dimension id or name.
Thrown if the specified netCDF ID does not refer to an open netCDF dataset.
Thrown if attribute or variable name contains illegal characters.
Thrown if not a valid netCDF data type.
Thrown if attempt to convert between text and numbers.
Thrown if invalid dimension size.
Thrown if edge+start exceeds dimension bound.
Thrown if an operation to set the chunking, endianness, fill of a NcVar object is issued after a call...
Thrown if cannot return a netCDF group.
Base object is thrown if a netCDF exception is encountered.
Thrown if, having set NC_NOCLOBBER, the specified dataset already exists.
Thrown if the action is prohibited on the NC_GLOBAL varid.
Thrown if an error was reported by the HDF5 layer.
Thrown if operation not allowed in defined mode.
Thrown if not a netCDF id.
Index exceeds dimension bound.
Thrown if invalid argument.
Thrown if Nc_MAX_ATTRS is exceeded.
Thrown if NC_MAX_DIMS is exceeded.
Thrown if NC_MAX_NAME is exceeded.
Thrown if NC_MAX_VARS is exceeded.
Thrown if too many netcdf files are open.
Thrown if string match to name is in use.
Thrown if memory allocation (malloc) failure.
Thrown if nc_rec op when there are no record vars.
Thrown if attribute is not found.
Thrown if operation not allowed in data mode.
Thrown if not a netCDF file.
Thrown if attempting netcdf-4 operation on netcdf-3 file.
Thrown if variable is not found.
Thrown if the requested operation is on a NULL dimension.
Thrown if the requested operation is on a NULL group.
Thrown if the requested operation is on a NULL type.
Thrown if math result not representable.
Thrown if attempting netcdf-4 operation on strict nc3 netcdf-4 file.
Thrown if illegal stride.
Thrown if in FORTRAN, string is too short.
Thrown if file likely truncated or possibly corrupted.
Thrown if cannot find the field id.
Thrown if Nc_UNLIMITED is in the wrong index.
Thrown if NC_UNLIMITED size is already in use.
Thrown if one or more variable sizes violate format constraints.