|
|
1.1 ! root 1: /* dserr_prn.c - ds error printer */ ! 2: ! 3: /* ! 4: * NOTICE ! 5: * ! 6: * Acquisition, use, and distribution of this module and related ! 7: * materials are subject to the restrictions of a license agreement. ! 8: * Consult the Preface in the User's Manual for the full terms of ! 9: * this agreement. ! 10: * ! 11: */ ! 12: ! 13: ! 14: #include "psap.h" ! 15: #include "quipu/util.h" ! 16: #include "quipu/common.h" ! 17: ! 18: extern LLog * log_dsap; ! 19: ! 20: int print_OPError(pe, type) ! 21: PE pe; ! 22: int type; ! 23: { ! 24: int success; ! 25: ! 26: switch(type) ! 27: { ! 28: case DSE_NOERROR : ! 29: success = NOTOK; ! 30: break; ! 31: case DSE_ABANDON_FAILED : ! 32: success = print_DAS_AbandonFailedParm(pe,1,NULLIP,NULLVP,NULLCP); ! 33: break; ! 34: case DSE_ATTRIBUTEERROR : ! 35: success = print_DAS_AttributeErrorParm(pe,1,NULLIP,NULLVP,NULLCP); ! 36: break; ! 37: case DSE_NAMEERROR : ! 38: success = print_DAS_NameErrorParm(pe,1,NULLIP,NULLVP,NULLCP); ! 39: break; ! 40: case DSE_REFERRAL : ! 41: success = print_DAS_ReferralParm(pe,1,NULLIP,NULLVP,NULLCP); ! 42: break; ! 43: case DSE_SECURITYERROR : ! 44: success = print_DAS_SecurityErrorParm(pe,1,NULLIP,NULLVP,NULLCP); ! 45: break; ! 46: case DSE_SERVICEERROR : ! 47: success = print_DAS_ServiceErrorParm(pe,1,NULLIP,NULLVP,NULLCP); ! 48: break; ! 49: case DSE_UPDATEERROR : ! 50: success = print_DAS_UpdateErrorParm(pe,1,NULLIP,NULLVP,NULLCP); ! 51: break; ! 52: case DSE_ABANDONED : ! 53: /* There is nothing to print for this. */ ! 54: success = ((pe == NULLPE) ? OK : NOTOK); ! 55: break; ! 56: case DSE_DSAREFERRAL : ! 57: success = print_DO_DSAReferralParm(pe, 1, NULLIP, NULLVP,NULLCP); ! 58: break; ! 59: default : ! 60: success = NOTOK; ! 61: LLOG(log_dsap, LLOG_EXCEPTIONS, ("print_OPError unknown Error %d", type)); ! 62: break; ! 63: } ! 64: ! 65: return(success); ! 66: } ! 67:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.