home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
dax1.exe
/
DAP
/
DAPERR.C
< prev
next >
Wrap
Text File
|
1992-07-15
|
3KB
|
48 lines
// ╔════════════════════════════════════════════════════════════════════╗
// ║ ║
// ║ module: daperr.c ║
// ║ abstract: This module contains the API that translates error ║
// ║ codes to text messages. ║
// ║ ║
// ║ environment: NetWare 3.x v3.11 ║
// ║ Network C for NLMs SDK ║
// ║ CLib v3.11 ║
// ║ Network C for DOS v2.0 ║
// ║ NetWare C Interface DOS v1.2 ║
// ║ ║
// ║ This software is provided as is and carries no warranty ║
// ║ whatsoever. Novell disclaims and excludes any and all implied ║
// ║ warranties of merchantability, title and fitness for a particular ║
// ║ purpose. Novell does not warrant that the software will satisfy ║
// ║ your requirements or that the software is without defect or error ║
// ║ or that operation of the software will be uninterrupted. You are ║
// ║ using the software at your risk. The software is not a product ║
// ║ of Novell, Inc. or any of subsidiaries. ║
// ║ ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ maintenance history: ║
// ║ level date pi description ║
// ╟────────────────────────────────────────────────────────────────────╢
// ║ 001 02/28/92 kl initial release. ║
// ╚════════════════════════════════════════════════════════════════════╝
#include "dap/dapsys.h"
char *DAPTranslateReturnCode(T_RC rc)
{
switch(rc){
case DAP_CANT_FIND_SERVER: return "no such server";
case DAP_CANT_CONNECT: return "unable to connect";
case DAP_PACKET_OUT_OF_SEQ: return "packet sequence";
case DAP_SEND_FAILURE: return "unable to send";
case DAP_INVALID_REQUEST: return "invalid request";
case DAP_INITFAILED: return "initialization failed";
case DAP_RESOURCE_ERROR: return "resource error";
case DAP_INTERNAL_ERROR: return "internal error";
case DAP_DIVIDE_BY_ZERO: return "divide by zero";
case DAP_NUMERIC_OVERFLOW: return "numeric overflow";
case DAP_TIMEOUT: return "timeout receiving";
default: return "unknown error";
}
}