NCBI C++ ToolKit
pubseq_gateway_exception.cpp
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* $Id: pubseq_gateway_exception.cpp 97814 2022-08-26 14:16:47Z satskyse $
2  * ===========================================================================
3  *
4  * PUBLIC DOMAIN NOTICE
5  * National Center for Biotechnology Information
6  *
7  * This software/database is a "United States Government Work" under the
8  * terms of the United States Copyright Act. It was written as part of
9  * the author's official duties as a United States Government employee and
10  * thus cannot be copyrighted. This software/database is freely available
11  * to the public for use. The National Library of Medicine and the U.S.
12  * Government have not placed any restriction on its use or reproduction.
13  *
14  * Although all reasonable efforts have been taken to ensure the accuracy
15  * and reliability of the software and data, the NLM and the U.S.
16  * Government do not and cannot warrant the performance or results that
17  * may be obtained by using this software or data. The NLM and the U.S.
18  * Government disclaim all warranties, express or implied, including
19  * warranties of performance, merchantability or fitness for any particular
20  * purpose.
21  *
22  * Please cite the author in any work or product based on this material.
23  *
24  * ===========================================================================
25  *
26  * Authors: Sergey Satskiy
27  *
28  * File Description: exceptions used in the pubseq gateway server
29  *
30  */
31 
32 #include <ncbi_pch.hpp>
33 
35 
36 
38 
39 
41 {
42  switch (GetErrCode()) {
44  return "eRequestAlreadyStarted";
45  case eRequestCanceled:
46  return "eRequestCanceled";
48  return "eRequestGeneratorAlreadyAssigned";
50  return "eReplyAlreadyStarted";
52  return "eOutputNotInReadyState";
54  return "eRequestAlreadyPostponed";
56  return "eRequestCannotBePostponed";
58  return "eRequestNotPostponed";
60  return "eRequestAlreadyFinished";
62  return "eConnectionNotAssigned";
64  return "ePendingReqNotAssigned";
66  return "eRequestPoolNotAvailable";
68  return "eWorkerAlreadyStarted";
69  case eAddressEmpty:
70  return "eAddressEmpty";
71  case ePortNotSpecified:
72  return "ePortNotSpecified";
74  return "eConfigurationError";
76  return "eDaemonizationFailed";
77  case eNoWakeCallback:
78  return "eNoWakeCallback";
79  case eNoDbPath:
80  return "eNoDbPath";
81  case eDbFlagsError:
82  return "eDbFlagsError";
83  case eDbNotInitialized:
84  return "eDbNotInitialized";
85  case eDbNotUpdated:
86  return "eDbNotUpdated";
87  case eDbNotOpened:
88  return "eDbNotOpened";
89  case eIterCannotForward:
90  return "eIterCannotForward";
92  return "eIterAlreadyReachedEnd";
94  return "eIterNoPostIncrement";
95  case eCannotUpdateDb:
96  return "eCannotUpdateDb";
97  case eInvalidRequest:
98  return "eInvalidRequest";
99  case eUnknownTSEOption:
100  return "eUnknownTSEOption";
101  case eInvalidId2Info:
102  return "eInvalidId2Info";
103  case eLogic:
104  return "eLogic";
106  return "eInvalidUserRequestType";
107  case eAccessionMismatch:
108  return "eAccessionMismatch";
109  case eVersionMismatch:
110  return "eVersionMismatch";
111  case eSeqIdMismatch:
112  return "eSeqIdMismatch";
113  case eInvalidPollInit:
114  return "eInvalidPollInit";
115  case eInvalidPollStart:
116  return "eInvalidPollStart";
117  case eInvalidTimerInit:
118  return "eInvalidTimerInit";
119  case eInvalidTimerStart:
120  return "eInvalidTimerStart";
121  case eInvalidAsyncInit:
122  return "eInvalidAsyncInit";
123  case eTimeout:
124  return "eTimeout";
125 
126  default:
128  }
129 }
130 
131 
133 {
134  switch (GetErrCode()) {
136  return "eUvThreadCreateFailure";
137  case eUvImportFailure:
138  return "eUvImportFailure";
139  case eUvListenFailure:
140  return "eUvListenFailure";
141  case eUvAsyncInitFailure:
142  return "eUvAsyncInitFailure";
143  case eUvTimerInitFailure:
144  return "eUvTimerInitFailure";
145  case eUvKeyCreateFailure:
146  return "eUvKeyCreateFailure";
148  return "eUvExportStartFailure";
150  return "eUvExportWaitFailure";
151  default:
153  }
154 }
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
TErrCode GetErrCode(void) const
Get error code.
Definition: ncbiexpt.cpp:453
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
Definition: ncbiexpt.cpp:444
Modified on Wed Sep 04 14:59:38 2024 by modify_doxy.py rev. 669887