* msgContext)
157 const char* msgPrefix = 0;
158 const char* msgBody = 0;
159 size_tlengthTotal = 32;
200 char buffer[512] = {
'\0'};
212lengthTotal += strlen(msgPrefix) + 1;
215lengthTotal += strlen(vdbErrMsg->
msgContext) + 3;
219lengthTotal += strlen(msgBody) + 2;
223*errMsg = (
char*)
calloc(lengthTotal,
sizeof(
char));
227strcpy(*errMsg, msgPrefix);
241 strcat(*errMsg, msgBody);
void VDBSRC_InitErrorMsg(TVDBErrMsg *vdbErrMsg, uint32_t rc, TVDBErrCode localCode)
Initialize an Error message.
#define VDBSRC_NO_MEM_FOR_VDBDATA
#define VDBSRC_4NA_REF_SEQ_BUF_OVERFLOW
void VDBSRC_InitLocalErrorMsg(TVDBErrMsg *vdbErrMsg, TVDBErrCode localCode)
Initialize an Error message that is local to this library.
#define VDBSRC_2NA_SEQ_STRING_ERROR
void VDBSRC_InitErrorMsgWithContext(TVDBErrMsg *vdbErrMsg, uint32_t rc, TVDBErrCode localCode, const char *msgContext)
Initialize an Error message with a context string.
#define VDBSRC_READ_ID_MISMATCH
void VDBSRC_ReleaseErrorMsg(TVDBErrMsg *vdbErrMsg)
Release the Error message.
#define VDBSRC_READER_2NA_CACHE_ERROR
void VDBSRC_InitEmptyErrorMsg(TVDBErrMsg *vdbErrMsg)
Initialize an empty Error message (No Error).
#define VDBSRC_NUM_SEQ_OVERFLOW_ERROR
#define VDBSRC_ADD_RUNS_ERROR
#define VDBSRC_GET_RUNSET_NAME_ERROR
#define VDBSRC_READER_4NA_CACHE_ERROR
#define VDBSRC_MGR_LOAD_ERROR
#define VDBSRC_RUNSET_FREE_ERROR
#define VDBSRC_UNINIT_VDB_DATA_ERROR
#define VDBSRC_GET_RUNSET_NUM_SEQ_ERROR
#define VDBSRC_RUNSET_LOAD_ERROR
#define VDBSRC_ID_OUT_OF_RANGE
#define VDBSRC_READER_2NA_COPY_ERROR
#define VDBSRC_4NA_SEQ_STRING_ERROR
#define VDBSRC_READER_2NA_ERROR
#define VDBSRC_READ_4NA_COPY_ERROR
#define VDBSRC_NO_MEM_FOR_CHUNK_SEQ
#define VDBSRC_MGR_FREE_ERROR
#define VDBSRC_REFSET_LOAD_ERROR
#define VDBSRC_NO_MEM_FOR_RUNS
#define VDBSRC_SEQ_LENGTH_ERROR
#define VDBSRC_FILTERED_READ
void VDBSRC_FormatErrorMsg(char **errMsg, const TVDBErrMsg *vdbErrMsg)
Format the error message as a single human-readable string.
#define VDBSRC_READER_4NA_ERROR
File contains definitions of error messages and error handling functions.
enum VDBSRC_ErrCode TVDBErrCode
@ eVDBSRC_NUM_SEQ_OVERFLOW_ERROR
Num of Seqs overflow.
@ eVDBSRC_FILTERED_READ
oid correpsond to filtered read
@ eVDBSRC_RUNSET_LOAD_ERROR
VDB RunSet could not be loaded.
@ eVDBSRC_MGR_LOAD_ERROR
VDB Manager could not be loaded.
@ eVDBSRC_NO_MEM_FOR_RUNS
No memory for an VDB accession.
@ eVDBSRC_4NA_SEQ_STRING_ERROR
4na convert to string error
@ eVDBSRC_ID_OUT_OF_RANGE
oid is out of range
@ eVDBSRC_GET_RUNSET_NAME_ERROR
Failed get run set name.
@ eVDBSRC_NO_ERROR
No errors.
@ eVDBSRC_READ_2NA_CACHE_ERROR
Failed to read 2na (cache)
@ eVDBSRC_READ_ID_MISMATCH
Read id mismatch (requested id != retrieved id)
@ eVDBSRC_READER_2NA_ERROR
Failed to process the NCBI-2na data.
@ eVDBSRC_ADD_RUNS_ERROR
Failed to add any run to RunSet.
@ eVDBSRC_UNINIT_VDB_DATA_ERROR
VDB Data has not be initialized.
@ eVDBSRC_4NA_REF_SEQ_BUF_OVERFLOW
4na seq overflow
@ eVDBSRC_READ_4NA_CACHE_ERROR
Failed to read 4na (cache)
@ eVDBSRC_REFSET_LOAD_ERROR
VDB RunSet could not be loaded.
@ eVDBSRC_READ_2NA_COPY_ERROR
Failed to read 2na (copy buffer)
@ eVDBSRC_NO_MEM_FOR_VDBDATA
No memory for the VDB data.
@ eVDBSRC_READ_4NA_COPY_ERROR
Failed to read 4na (copy buffer)
@ eVDBSRC_SEQ_LENGTH_ERROR
VDB returns invalid seq length.
@ eVDBSRC_2NA_SEQ_STRING_ERROR
2na convert to string error
@ eVDBSRC_RUNSET_FREE_ERROR
VDB RunSet could not be released.
@ eVDBSRC_READER_4NA_ERROR
Failed to process the NCBI-4na data.
@ eVDBSRC_NO_MEM_FOR_CHUNK_SEQ
No memory for chunk seq.
@ eVDBSRC_MGR_FREE_ERROR
VDB Manager could not be released.
@ eVDBSRC_GET_RUNSET_NUM_SEQ_ERROR
Failed get num of seq.
#define ASSERT
macro for assert.
Structure describing the error messages the library can generate.
char * msgContext
Optional context string for the error.
Boolean isError
True if the object describes an error.
TVDBErrCode localCode
Local error code, set by this library.
uint32_t resultCode
SRA error, rcNoErr if the error is local.
voidp calloc(uInt items, uInt size)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4