33 #ifndef ALGO_BLAST_API___BLAST_EXCEPTION__HPP
34 #define ALGO_BLAST_API___BLAST_EXCEPTION__HPP
58 switch ( GetErrCode() ) {
59 case eOutOfMemory:
return "eOutOfMemory";
64 #ifndef SKIP_DOXYGEN_PROCESSING
103 #ifndef SKIP_DOXYGEN_PROCESSING
Defines BLAST error codes (user errors included)
Defines system exceptions occurred while running BLAST.
virtual const char * GetErrCodeString(void) const override
Translate from the error code value to its string representation.
EErrCode
Error types that BLAST can generate.
EErrCode
Error types that BLAST can generate.
virtual const char * GetErrCodeString(void) const override
Translate from the error code value to its string representation.
NCBI_EXCEPTION_DEFAULT(CBlastSystemException, CException)
NCBI_EXCEPTION_DEFAULT(CBlastException, CException)
@ eRpsInit
Error while initializing RPS-BLAST.
@ eSetup
Error while setting up BLAST.
@ eInvalidOptions
Invalid algorithm options.
@ eInvalidCharacter
Invalid character in sequence data.
@ eCoreBlastError
FIXME: need to interpret CORE errors.
@ eNotSupported
Feature not supported.
@ eSeqSrcInit
Initialization error in BlastSeqSrc implementation.
@ eInvalidArgument
Invalid argument to some function/method (could be programmer error - prefer assertions in those case...
@ eOutOfMemory
Out-of-memory.
TErrCode GetErrCode(void) const
Get error code.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define END_SCOPE(ns)
End the previously defined scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define BEGIN_SCOPE(ns)
Define a new scope.
Defines NCBI C++ exception handling.