Search Toolkit Book for CException
#include <corelib/ncbiexpt.hpp>
Inherits std::exception.
Inherited by CASNCacheException, CAlgoAlignException, CAlgoAlignUtilException, CAlgoFeatureGeneratorException, CAlignRangeCollException, CAlnMultiCGIException, CAmbiguousDateException, CAnnotMapperException, CAppHitFilterException, CAppNWAException, CAssemblyParserException, CBGZFException, CBadResiduesException, CBlastException, CBlastHitMatrixCGIException, CBlastServicesException, CBlastSystemException, CBlobStorageException, CCDDClientException, CCRowReaderStream_IANA_CSV_Exception, CCRowReaderStream_IANA_TSV_Exception, CCacheException, CCassandraException, CClustererException, CCompoundIDException, CCoreException, CDatatoolException, CDbIndex_Exception, CDiffException, CEUtilsException, CFeatFilterQueryException, CFlatException, CGCServiceException, CGeneInfoException, CGeneralException, CGeneralScoreMatrixException, CGetPasswordFromConsoleException, CGffDeconcatException, CGridClientException, CGridRPCBaseClientException, CGridWorkerNodeException, CGumbelParamsException, CHgvsVariantException, CHttpCookieException, CHttpSessionException, CHugeFileException, CIdMapperException, CImportError, CIndexSuperHeader_Exception, CIndexedDbException, CInputException, CInvalidConversionException, CInvalidDataException, CInvalidParamException, CIpgStorageException, CJsonException, CJsonOverUTTPException, CKmerCountsException, CLinksException, CManifestException, CMaskReader::Exception, CMinHashException, CModReaderException, CMultiAlignerException, CMultisourceException, CNSClientFactoryException, CNSProtoParserException, CNetServiceException, CNetSrvConnException, CNetStorageGCException, CNetStorageServerException, CObjMgrException, CObjReaderException, CObjWriterException, COpenViewManager::COVMException, CPSG_Exception, CPSG_MyNCBIException, CPhyTreeCalcException, CPhyTreeFormatterException, CPhyloTreeException, CPrefetchCanceled, CPrefetchFailed, CPrjStorageException, CProjBulderAppException, CPubseqGatewayException, CPubseqGatewayUVException, CQueryExecException, CQueryParseException, CRPCClientException, CRandomException, CRegexpException, CRemoteUpdaterException, CRowReaderException, CSDB_Exception, CSQLITE3_ICacheException, CSQLITE_Exception, CSRSearch::InternalException, CScorePValuesException, CSearchException, CSeqAnnotException, CSeqDBException, CSeqIdException, CSeqLocException, CSeqMasker::CSeqMaskerException, CSeqMaskerIstatAscii::Exception, CSeqMaskerIstatBin::Exception, CSeqMaskerIstatFactory::Exception, CSeqMaskerIstatOAscii::Exception, CSeqMaskerIstatOBinary::Exception, CSeqMaskerOstat::CSeqMaskerOstatException, CSeqMaskerOstatAscii::CSeqMaskerOstatAsciiException, CSeqMaskerOstatFactory::CSeqMaskerOstatFactoryException, CSeqMaskerOstatOpt::Exception, CSeqMaskerUsetArray::Exception, CSeqMaskerUsetHash::Exception, CSeqMaskerUsetSimple::Exception, CSeqSubSplitException, CSeqTableException, CSeqUpdateException, CSeqUtilException, CSeq_id_MapperException, CSeqsetException, CSequenceIStream::CSequenceIStream_Exception, CSerialException, CSplignAppException, CSplitException, CSrzException, CStopWorkException, CStringOrBlobStorageRWException, CSyncQueueException, CThreadPoolException, CUnsupportedEditSaverException, CUrlException, CUser_object::CRefGeneTrackingException, CUtilException, CUvBaseException, CVariationIrepException, CVariationValidateException, CWinMaskConfigException, CWinMaskCountsConverter::Exception, CWinMaskCountsGenerator::GenCountsException, CWriteDBException, NAutomation::CAutomationException, variation::CHgvsParser::CHgvsParserException, and variation_ref::CHgvsParser::CHgvsParserException.
|
| CException (const CDiagCompileInfo &info, const CException *prev_exception, EErrCode err_code, const string &message, EDiagSev severity=eDiag_Error, TFlags flags=0) |
| Constructor. More...
|
|
| CException (const CDiagCompileInfo &info, const CException *prev_exception, const CExceptionArgs< EErrCode > &args, const string &message) |
|
| CException (const CException &other) |
| Copy constructor. More...
|
|
void | AddBacklog (const CDiagCompileInfo &info, const string &message, EDiagSev severity=eDiag_Error) |
| Add a message to backlog (to re-throw the same exception then). More...
|
|
void | AddPrevious (const CException *prev_exception) |
|
void | AddToMessage (const string &add_msg) |
|
virtual void | Throw (void) const |
| Polymorphically (re)throw an exception whose exact type is uncertain. More...
|
|
virtual const char * | what (void) const noexcept |
| Standard report (includes full backlog). More...
|
|
void | Report (const CDiagCompileInfo &info, const string &title, CExceptionReporter *reporter=0, TDiagPostFlags flags=eDPF_Exception) const |
| Report the exception. More...
|
|
string | ReportThis (TDiagPostFlags flags=eDPF_Exception) const |
| Report this exception only. More...
|
|
string | ReportAll (TDiagPostFlags flags=eDPF_Exception) const |
| Report all exceptions. More...
|
|
void | ReportStd (ostream &out, TDiagPostFlags flags=eDPF_Exception) const |
| Report "standard" attributes. More...
|
|
virtual void | ReportExtra (ostream &out) const |
| Report "non-standard" attributes. More...
|
|
const CStackTrace * | GetStackTrace (void) const |
| Get the saved stack trace if available or NULL. More...
|
|
EDiagSev | GetSeverity (void) const |
| Get exception severity. More...
|
|
CException & | SetSeverity (EDiagSev severity) |
| Set exception severity. More...
|
|
virtual const char * | GetType (void) const |
| Get class name as a string. More...
|
|
virtual const char * | GetErrCodeString (void) const |
| Get error code interpreted as text. More...
|
|
const string & | GetFile (void) const |
| Get file name used for reporting. More...
|
|
void | SetModule (const string &module) |
| Set module name used for reporting. More...
|
|
const string & | GetModule (void) const |
| Get module name used for reporting. More...
|
|
void | SetClass (const string &nclass) |
| Set class name used for reporting. More...
|
|
const string & | GetClass (void) const |
| Get class name used for reporting. More...
|
|
void | SetFunction (const string &function) |
| Set function name used for reporting. More...
|
|
const string & | GetFunction (void) const |
| Get function name used for reporting. More...
|
|
int | GetLine (void) const |
| Get line number where error occurred. More...
|
|
TErrCode | GetErrCode (void) const |
| Get error code. More...
|
|
const string & | GetMsg (void) const |
| Get message string. More...
|
|
const CException * | GetPredecessor (void) const |
| Get "previous" exception from the backlog. More...
|
|
bool | HasMainText (void) const |
| Check if exception has main text in the chain. More...
|
|
virtual | ~CException (void) noexcept |
| Destructor. More...
|
|
bool | IsSetFlag (EFlags flag) const |
| Check if the flag is set. More...
|
|
CException & | SetFlag (EFlags flag) |
| Set flag (add to other flags) More...
|
|
CException & | UnsetFlag (EFlags flag) |
| Unset flag (other flags are left as is) More...
|
|
CRequestContext & | GetRequestContext (void) const |
| Get the request context in which the exception was thrown. More...
|
|
void | SetRetriable (ERetriable retriable) |
| Set the info about ability to retry an action caused the exception. More...
|
|
virtual ERetriable | GetRetriable (void) const |
| Retrieve info about ability to retry an action caused the exception. More...
|
|
The documentation for this class was generated from the following files: