NCBI C++ ToolKit
WRONG_ERROR_SUBCODE_IN_POST_MACRO< errorCode, errorSubcode, maxErrorSubcode, isWrong > Struct Template Reference

Search Toolkit Book for WRONG_ERROR_SUBCODE_IN_POST_MACRO

Template structure used to point out wrong error subcode in ERR_POST_X, STD_CATCH_X and alike macros. More...

Detailed Description

template<int errorCode, int errorSubcode, int maxErrorSubcode, bool isWrong>
struct WRONG_ERROR_SUBCODE_IN_POST_MACRO< errorCode, errorSubcode, maxErrorSubcode, isWrong >

Template structure used to point out wrong error subcode in ERR_POST_X, STD_CATCH_X and alike macros.

When error subcode that is greater than maximum defined in NCBI_DEFINE_ERRCODE_X or NCBI_DEFINE_ERR_SUBCODE_X will be used compiler will give an error and in text of this error you'll see the name of this structure. In parameters of template instantiation (that will be also shown in error message) you'll see error code currently active, error subcode used in *_POST_X macro and maximum error subcode valid for active error code.

See also
NCBI_DEFINE_ERRCODE_X, NCBI_DEFINE_ERR_SUBCODE_X, ERR_POST_X

Definition at line 403 of file ncbidiag.hpp.


The documentation for this struct was generated from the following file:
Modified on Fri Feb 23 11:44:39 2024 by modify_doxy.py rev. 669887