OPERA  1.0
Open source echelle spectrograph reduction pipeline
operaError.h File Reference
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include "fitsio.h"
Include dependency graph for operaError.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAXERRSTRINGSIZE   4096
#define operaErrorCodeOK   0
#define operaErrorIsInf   32759
#define operaErrorIsNaN   32760
#define operaErrorHeaderProblem   32761
#define operaErrorNoBadPixelMask   32762
#define operaErrorPickOutofRange   32763
#define operaErrorNoInput   32764
#define operaErrorNoOutput   32765
#define operaErrorCodeNOTIMPLEMENTED   32766
#define operaErrorCodeNULL   32767
#define operaErrorCodeNULLString   32768
#define operaErrorCodeEnvironmentnotset   701
#define operaErrorCodeDatatypeNotSupported   702
#define operaErrorCodeNoFilename   703
#define operaErrorCodeTileError   704
#define operaErrorCodeBracketingError   705
#define operaErrorReductionSetEtypeNotDefined   800
#define operaErrorReductionSetQualiKeyNotDefined   801
#define operaErrorReductionSetQualiValNotDefined   802
#define operaErrorReductionSetObstypeKeyNotDefined   803
#define operaErrorReductionSetEtypeFailed   804
#define operaErrorReductionSetInputNotFound   805

Typedefs

typedef int operaErrorCode

Functions

static char * operaStrError (const operaErrorCode errcode)
static void operaPError (const char *prefix, const operaErrorCode errcode)
 {operaPErrorwill first print prefix followed by a colon and a space to standard error. Then, it will print the result of strerror to standard error, followed by a newline character.}

Variables

static char operaErrorString [MAXERRSTRINGSIZE]
 {This function generates and reports a C-style string, containing an error message derived from the error code passed in with errcode.}

Define Documentation

#define MAXERRSTRINGSIZE   4096
#define operaErrorCodeBracketingError   705
#define operaErrorCodeDatatypeNotSupported   702
#define operaErrorCodeEnvironmentnotset   701
#define operaErrorCodeNoFilename   703
#define operaErrorCodeNOTIMPLEMENTED   32766
#define operaErrorCodeNULL   32767
#define operaErrorCodeNULLString   32768
#define operaErrorCodeOK   0
#define operaErrorCodeTileError   704
#define operaErrorHeaderProblem   32761
#define operaErrorIsInf   32759
#define operaErrorIsNaN   32760
#define operaErrorNoBadPixelMask   32762
#define operaErrorNoInput   32764
#define operaErrorNoOutput   32765
#define operaErrorPickOutofRange   32763
#define operaErrorReductionSetEtypeFailed   804
#define operaErrorReductionSetEtypeNotDefined   800
#define operaErrorReductionSetInputNotFound   805
#define operaErrorReductionSetObstypeKeyNotDefined   803
#define operaErrorReductionSetQualiKeyNotDefined   801
#define operaErrorReductionSetQualiValNotDefined   802

Typedef Documentation

typedef int operaErrorCode

Function Documentation

static void operaPError ( const char *  prefix,
const operaErrorCode  errcode 
) [static]

{operaPErrorwill first print prefix followed by a colon and a space to standard error. Then, it will print the result of strerror to standard error, followed by a newline character.}

void operaPError(const char* prefix, const operaErrorCode errcode)

Parameters:
prefixis a char pointer to the prefix to use
errcodeis an operaErrorCode
Returns:
void

Here is the call graph for this function:

static char* operaStrError ( const operaErrorCode  errcode) [static]

Variable Documentation

char operaErrorString[MAXERRSTRINGSIZE] [static]

{This function generates and reports a C-style string, containing an error message derived from the error code passed in with errcode.}

void operaStrError(const operaErrorCode errcode)

Parameters:
errcodeis an operaErrorCode
Note:
non-reentrant
Returns:
char *