oac_errors_h

/*******************************************************************************
**  Copyright 1993, Universities Research Association.  All rights reserved.
*******************************************************************************/
/*
**++
**  FACILITY:  Open Access Client (OAC): oac_errors.h
**
**      Open Access Servers include Open Access Front-end (OAF) and
**      Open Access Model (OAM). These servers dispatch Retdat/Setdat
**      requests to their clients, or contributors, call Open Access
**      Clients (OAC).
**
**  ABSTRACT:
**
**      oac_errors.h contains error defintions for the clients.
**
**  AUTHORS:  K. Cahill, R Joshel
**
**  MODIFICATION HISTORY:
**
**      18 Aug 93  K Cahill created
**--
**/
/******************************************************************************/
#ifndef _oac_errors_h
#define _oac_errors_h				/* include only once */

/*
** OAC facility
*/
#define OAC_FAC	49				/* OAS Client facility code */

/*
** OAC error codes
*/
#define OAC_PENDING	(OAC_FAC + (1*256))	/* pending */
#define OAC_SETOK_NOFWD	(OAC_FAC + (2*256))	/* setting ok, no forward */

#define	OAC_MEMFAIL	(OAC_FAC + (-1*256))	/* memory allocation failed */
#define	OAC_NOSETUP	(OAC_FAC + (-2*256))	/* required setup not done */
#define	OAC_INVARG	(OAC_FAC + (-3*256))	/* invalid argument passed */
#define	OAC_NOTOPN	(OAC_FAC + (-4*256))	/* required file not open */
#define	OAC_STALE	(OAC_FAC + (-5*256))	/* stale data returned */
#define	OAC_NOATT	(OAC_FAC + (-6*256))	/* no such attribute exists for this device */
#define	OAC_NOSCALE	(OAC_FAC + (-7*256))	/* no scaling info found for this device */
#define	OAC_BADSCALE	(OAC_FAC + (-8*256))	/* bad PDB info */
#define	OAC_INVLEN	(OAC_FAC + (-9*256))	/* invalid raw data length */
#define	OAC_SETDIS	(OAC_FAC + (-10*256))	/* setting attempted with OAC settings disabled */
#define	OAC_NO_SUCH	(OAC_FAC + (-11*256))	/* no such device */
#define	OAC_UNAVAIL	(OAC_FAC + (-12*256))	/* desired service is unavailable */
#define	OAC_INVDEV	(OAC_FAC + (-13*256))	/* invalid device (for this operation) */
#define	OAC_SCALEFAIL	(OAC_FAC + (-14*256))	/* scaling failed */
#define	OAC_BUGCHK	(OAC_FAC + (-15*256))	/* program bug-check */
#define	OAC_CORRUPT	(OAC_FAC + (-16*256))	/* data is corrupted or inconsistent */
#define	OAC_INVOFF	(OAC_FAC + (-17*256))	/* invalid raw data offset */
#define	OAC_NOTYET	(OAC_FAC + (-18*256))	/* feature not yet supported */
#define	OAC_RANGE	(OAC_FAC + (-19*256))	/* requested value out of range */
#define	OAC_LIBERR	(OAC_FAC + (-20*256))	/* library calculation failed */
#define	OAC_INPERR	(OAC_FAC + (-21*256))	/* input device for caclulation in error */
#define	OAC_GENERR	(OAC_FAC + (-22*256))	/* generic error--not mapped to another more speific error code */
#define	OAC_INVSET	(OAC_FAC + (-23*256))	/* invalid setting attempted */
#define	OAC_TOO_FEW_VALUES	(OAC_FAC + (-24*256))	/* too few values are available to make a calculation */
#define	OAC_MATH_EXCEPTION	(OAC_FAC + (-25*256))	/* math exception occurred */
#define	OAC_UNSUPPORTED	(OAC_FAC + (-26*256))	/* unsupported device */

#endif