A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/serial_2exception_8cpp_source.html below:

NCBI C++ ToolKit: src/serial/exception.cpp Source File

65  case eFail

:

return "eFail"

;

71  size_t

index,

const char

*

const names

[],

size_t

namesCount)

73  if

( index > namesCount )

92  if

( e_pos !=

NPOS

) {

96  bool

capitalize =

true

;

111

c = (char)

toupper

((

unsigned char

)c);

125  size_t

currentIndex,

size_t

mustBeIndex,

126  const char

*

const names

[],

size_t

namesCount,

135  const char

* cur_name =

GetName

(currentIndex,

names

, namesCount);

136  const char

* req_name =

GetName

(mustBeIndex,

names

, namesCount);

140  msg

<<

": Invalid choice selection: " 141

<<

type

->GetAccessModuleName() <<

"::"

<<

type

->GetAccessName()

145  msg

<<

"Invalid choice selection: " 146

<< cur_name <<

". Expected: "

<< req_name;

154  size_t

currentIndex,

size_t

mustBeIndex,

155  const char

*

const names

[],

size_t

namesCount,

160  string

(

"Invalid choice selection: "

)+

168  const char

*

file

,

int

line,

169  size_t

currentIndex,

size_t

mustBeIndex,

170  const char

*

const names

[],

size_t

namesCount,

175  string

(

"Invalid choice selection: "

)+

183  size_t

currentIndex,

size_t

mustBeIndex,

184  const char

*

const names

[],

size_t

namesCount,

189  string

(

"Invalid choice selection: "

)+

209  return "CInvalidChoiceSelection"

;

232  case eEOF

:

return "eEOF"

;

238  case eFail

:

return "eFail"

;

250  case eGet

:

return "eGet"

;

251  case eWrite

:

return "eWrite"

;

260  if

(e ==

eGet

) {

return "eGet"

;}

261  if

(e ==

eWrite

) {

return "eWrite"

;}

272  case eLength

:

return "eLength"

;

Incapsulate compile time information such as __FILE__, __LINE__, NCBI_MODULE, current function.

Thrown on an attempt to access wrong choice variant.

CNcbiOstrstreamToString class helps convert CNcbiOstrstream to a string Sample usage:

Root class for all serialization exceptions.

Base class for all serializable objects.

CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...

std::ofstream out("events_result.xml")

main entry point for tests

static const struct name_t names[]

ostream & operator<<(ostream &os, const CDB_Exception::SContext &ctx)

EDiagSev

Severity level for the posted diagnostics.

TErrCode GetErrCode(void) const

Get error code.

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.

virtual const char * GetErrCodeString(void) const

Get error code interpreted as text.

@ eInvalid

To be used ONLY as a return value; please, NEVER throw an exception with this code.

virtual const char * GetErrCodeString(void) const override

Get error code interpreted as text.

virtual const char * GetErrCodeString(void) const override

Get error code interpreted as text.

virtual const char * GetType(void) const override

Get class name as a string.

virtual const char * GetErrCodeString(void) const override

Get error code interpreted as text.

virtual void x_Assign(const CException &src) override

Helper method for copying exception data.

static const char * GetName(size_t index, const char *const names[], size_t namesCount)

CInvalidChoiceSelection(void)

virtual const CException * x_Clone(void) const override

Helper method for cloning the exception.

virtual void ReportExtra(ostream &out) const override

Report "non-standard" attributes.

void AddFrameInfo(string frame_info)

virtual ~CInvalidChoiceSelection(void) noexcept

TErrCode GetErrCode(void) const

virtual const char * GetErrCodeString(void) const override

Get error code interpreted as text.

@ eFormatError

Malformed input data.

@ eIoError

An unknown error during serialization.

@ eInvalidData

Data is incorrect.

@ eMissingValue

Mandatory value was missing in the input.

@ eOverflow

Data is beyond the allowed limits.

@ eNotOpen

No input or output file.

@ eNullValue

Data value is null.

@ eFail

Internal error, the real reason is unclear.

@ eEOF

Unexpected end-of-file.

@ eNotImplemented

Attempt to use unimplemented funtionality.

@ eIllegalCall

Illegal in a given context function call.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

NCBI_NS_STD::string::size_type SIZE_TYPE

size_type rfind(const CTempString match, size_type pos=npos) const

Find the first instance of the entire matching string within the current string in a backward directi...

static bool EndsWith(const CTempString str, const CTempString end, ECase use_case=eCase)

Check if a string ends with a specified suffix value.

size_type size(void) const

Return the length of the represented array.

const struct ncbi::grid::netcache::search::fields::SIZE size

static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

SPrintIdentifier(const CTempString &s)


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