1 #ifndef OBJMGR_EXCEPTION__HPP
2 #define OBJMGR_EXCEPTION__HPP
66 virtual const char* GetErrCodeString(
void)
const override;
142 void SetFailedCall(
const string& call);
168 const string& message,
172 message, severity, 0),
175 x_Init(
info, message, prev_exception, severity);
180 m_BlobState(other.m_BlobState)
185 const char*
GetType(
void)
const override {
return "CBlobStateException"; }
239 eSegmentsLimitExceded
Annotation iterators exceptions.
Blob state exceptions, used by GenBank loader.
Incapsulate compile time information such as __FILE__, __LINE__, NCBI_MODULE, current function.
Data loader exceptions, used by GenBank loader.
Base class for all object manager exceptions.
Exceptions for objmgr/util library.
SeqMap related exceptions.
SeqVector related exceptions.
Include a standard set of the NCBI C++ Toolkit most basic headers.
std::ofstream out("events_result.xml")
main entry point for tests
EDiagSev
Severity level for the posted diagnostics.
@ eDiag_Error
Error message.
virtual void ReportExtra(ostream &out) const
Report "non-standard" attributes.
virtual int x_GetErrCode(void) const
Helper method for getting error code.
virtual void x_Init(const CDiagCompileInfo &info, const string &message, const CException *prev_exception, EDiagSev severity)
Helper method for initializing exception data.
virtual void x_InitErrCode(CException::EErrCode err_code)
Helper method for initializing error code.
virtual void x_Assign(const CException &src)
Helper method for copying exception data.
EErrCode
Error types that an application can generate.
@ eInvalid
To be used ONLY as a return value; please, NEVER throw an exception with this code.
const char * GetType(void) const override
Get class name as a string.
NCBI_EXCEPTION_DEFAULT(CAnnotSearchLimitException, CObjMgrException)
NCBI_EXCEPTION_DEFAULT(CSeqMapException, CObjMgrException)
TBlobState GetBlobState(void)
NCBI_EXCEPTION_DEFAULT(CObjMgrException, CException)
TErrCode GetErrCode(void) const
NCBI_EXCEPTION_DEFAULT(CObjmgrUtilException, CObjMgrException)
CBlobStateException(const CBlobStateException &other)
CBlobStateException(void)
virtual const CException * x_Clone(void) const override
Helper method for cloning the exception.
virtual const char * GetErrCodeString(void) const override
Get error code interpreted as text.
virtual ~CBlobStateException(void) noexcept
NCBI_EXCEPTION_DEFAULT(CLoaderException, CObjMgrException)
NCBI_EXCEPTION_DEFAULT(CSeqVectorException, CObjMgrException)
CBlobStateException(const CDiagCompileInfo &info, const CException *prev_exception, EErrCode err_code, const string &message, TBlobState state, EDiagSev severity=eDiag_Error)
NCBI_EXCEPTION_DEFAULT(CAnnotException, CObjMgrException)
@ eDataError
Sequence data error.
@ eCodingError
Incompatible coding selected.
@ eIncomatibleType
Incompatible annotation type (feat/graph/align)
@ eFindFailed
Seq-id can not be resolved.
@ eLimitError
Invalid or unknown limit object.
@ eBadLocation
Wrong location type while mapping annotations.
@ eUnimplemented
The method is not implemented.
@ eSegmentTypeError
Wrong segment type.
@ eIteratorTooBig
Bad internal iterator in delta map.
@ eInvalidIndex
Invalid segment index.
@ eSelfReference
Self-reference in seq map is detected.
@ eNullPointer
Attempt to access non-existing object.
@ eOutOfRange
Iterator is out of range.
@ eDataError
SeqMap data error.
@ eModifyDataError
Error while modifying data.
@ eFindConflict
Conflicting data found.
@ eRegisterError
Error while registering a data source/loader.
@ eNotImplemented
The method is not implemented.
@ eAddDataError
Error while adding new data.
@ eMissingData
The sequence doesn't have the data requested.
@ eLockedData
Attempt to remove locked data.
@ eInvalidHandle
Attempt to use an invalid handle.
@ eTransaction
Transaction violation.
@ eFindFailed
The data requested can not be found.
#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.
#define NCBI_XOBJMGR_EXPORT
Defines NCBI C++ exception handling.