DicError.hh 3.04 KB
/**
 * DicError.hh
 *
 *  Created on: 12 oct. 2012
 *      Author: AKKA IS
 */

#ifndef DICERROR_HH_
#define DICERROR_HH_

/**
 * List of code error return by application
 */
enum {
	AMDA_EXIT_OK = 0,
	AMDA_PARSE_COMMAND_LINE_KO = 1, ///Command line arguments not recognized
	AMDA_TYPE_DATA_UNKNOWN = 2, /// Type of Data not supported
    AMDA_FILEPROPERTIES_ERR = 3, /// Error in property file
	AMDA_INFORMATION_PARAM_ERR = 4, /// Parameter XML file not found or not well-formed or not valid
	AMDA_INFORMATION_REQUEST_ERR = 5, /// Request XML file error
	AMDA_PARAM_OUTPUT_ERR = 6, /// ParamOutput implementation not found
	AMDA_PROCESS_ERR = 7, /// Compilation abort or library load abort
	AMDA_PARAM_NOT_FOUND_ERR = 8, /// Parameter of ident ??? is not fond
	AMDA_PARAM_SOME_ERR = 9, /// Some ParamOutput are terminated successfully but not all.
	AMDA_OPER_NOT_ALLOWED = 10, /// Operation not allowed
	AMDA_ERROR_UNKNOWN = 100, // Unknown error

	/*
	 * Errors for ParamGet LocalFiles
	 */
	AMDA_LOCALFILE_READER    = 20, /// Unknown file reader
	AMDA_LOCALFILE_TIMEPARAM = 21, /// Cannot find time parameter
	AMDA_OUTOFTIME_ERR       = 22, /// Out of data time

	/*------------ Errors of   DD_serveur ---------------------*/
	AMDA_ERROR_NOCONNECTION =-1, // No connection with DD_server
	AMDA_ERROR_TOOMANYREQ   =-2, // too many request
	AMDA_ERROR_REQSENDERR   =-3,
	AMDA_ERROR_REPLYRECERR  =-4, // receive an server error
	AMDA_ERROR_NOID        = -5, //Id of request not valid
	AMDA_ERROR_NOREFFILE    =-6, //Data base not consistent
	AMDA_ERROR_NOTIMESFILE  =-7, //Data base not consistent
	AMDA_ERROR_NOINFOFILE   =-8, //Data base not consistent
	AMDA_ERROR_NOVAR       = -9, // Variable  unknown
	AMDA_ERROR_OUTOFTIME    =-10, //Out of data time
	AMDA_ERROR_CACHERR       =-11, /** The error occured when program manipulated the cach */
	AMDA_ERROR_CACHTOOREC    =-33 ,/** Off files in the CASH are created less then 5 sec ago */
	AMDA_ERROR_WAITEXTCALL   =-34, /** Server Waits external call finish */
	AMDA_ERROR_TRYAGAIN     = -35, /** Times file is locked. This request should be repeated again */
	AMDA_ERROR_NODATAATTIME  =-36, /** Requested time is inside NODATA time interval */
	AMDA_ERROR_GAPISSMALL    =-37, /** Gap is too small to call external archive */
	AMDA_ERROR_CTIMEISSHIFTED =-38 ,/** The request was in NoData interval, try again with time at the end */
	AMDA_ERROR_DATAFILEERR  = -12, /** The error while manipulate with data file */
	AMDA_ERROR_ENVIRERROR =-13  ,  /** Error in Environments */
	AMDA_ERROR_NOPOINTER  =-14 ,   /** The pointer points nowhere, SetTime were failed */
	AMDA_ERROR_INTSERERR  =-15 ,   /** Server internal error */
	AMDA_ERROR_TIMEINEMPTY =-16,   /** No data for specified time interval */
	AMDA_ERROR_NOEXEC     = -17 ,  /** No executable */
	/*------------ Errors of   DD_serveur(ACCESS) ---------------------*/
	AMDA_ERROR_OPERMISSION  =   -100, /** Permission denied to connect with DD_server*/
	AMDA_ERROR_NOHOST       =   -101, /** Permission denied to connect with DD_server*/
	AMDA_ERROR_NNOUSERSFILE =   -102
};



#endif /* DICERROR_HH_ */