SatAndLight  2.2.2-hubble
Simulation toolkit for space telescopes
Loading...
Searching...
No Matches
Error.h File Reference

This module is used to define SatAndLight error codes. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef enum _E_ERROR_CODE E_ERROR_CODE
 List of error codes.
 

Enumerations

enum  _E_ERROR_CODE {
  SNL_ERROR_VERSION =-1 , SNL_OK =0 , SNL_ERROR_HELP =1 , SNL_ERROR_UNKNOWN =2 ,
  SNL_ERROR_MISSING_OPTION =3 , SNL_ERROR_MISSING_DIR =4 , SNL_ERROR_MISSING_FILE =5 , SNL_ERROR_MISSING_DATA =6 ,
  SNL_ERROR_MISSING_PARAM =7 , SNL_ERROR_NOT_ROOT_FILE =8 , SNL_ERROR_NOT_FITS_FILE =9 , SNL_ERROR_OUT_OF_RANGE =10 ,
  SNL_ERROR_MISMATCH =11 , SNL_ERROR_SIZE_MISMATCH =12 , SNL_ERROR_NOT_SORTED =13 , SNL_ERROR_FAILED_EXTRACTION =15 ,
  SNL_ERROR_FAILED_OPERATION =15 , SNL_ERROR_NOT_FOUND =16
}
 List of error codes. More...
 

Detailed Description

This module is used to define SatAndLight error codes.

Authors
Florent Robinet, flore.nosp@m.nt.r.nosp@m.obine.nosp@m.t@ij.nosp@m.clab..nosp@m.in2p.nosp@m.3.fr

Typedef Documentation

◆ E_ERROR_CODE

List of error codes.

Convention:

  • 0 is reserved for nominal.
  • negative values are reserved for warning or information.
  • positive values are reserved for fatal errors.

Enumeration Type Documentation

◆ _E_ERROR_CODE

List of error codes.

Convention:

  • 0 is reserved for nominal.
  • negative values are reserved for warning or information.
  • positive values are reserved for fatal errors.
Enumerator
SNL_ERROR_VERSION 

Version number.

SNL_OK 

OK.

SNL_ERROR_HELP 

Help.

SNL_ERROR_UNKNOWN 

Unknown.

SNL_ERROR_MISSING_OPTION 

Missing option in the command line.

SNL_ERROR_MISSING_DIR 

Missing directory.

SNL_ERROR_MISSING_FILE 

Missing file.

SNL_ERROR_MISSING_DATA 

Missing data.

SNL_ERROR_MISSING_PARAM 

Missing parameter.

SNL_ERROR_NOT_ROOT_FILE 

Not a ROOT file.

SNL_ERROR_NOT_FITS_FILE 

Not a FITS file.

SNL_ERROR_OUT_OF_RANGE 

Out-of-range value.

SNL_ERROR_MISMATCH 

Mismatch value.

SNL_ERROR_SIZE_MISMATCH 

Size mismatch.

SNL_ERROR_NOT_SORTED 

Not sorted.

SNL_ERROR_FAILED_EXTRACTION 

Failed extraction.

SNL_ERROR_FAILED_OPERATION 

Failed operation.

SNL_ERROR_NOT_FOUND 

Not found.