BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bsls::AssertViolation Class Reference

#include <bsls_assert.h>

Public Member Functions

BSLS_KEYWORD_CONSTEXPR AssertViolation (const char *comment, const char *fileName, int lineNumber, const char *assertLevel)
 
const char * assertLevel () const
 Return the assertLevel attribute of this object.
 
const char * comment () const
 Return the comment attribute of this object.
 
const char * fileName () const
 Return the fileName attribute of this object.
 
int lineNumber () const
 Return the lineNumber attribute of this object.
 

Detailed Description

This class is an unconstrained in-core value-semantic class that characterizes the details of a assert failure that has occurred.

See bsls_assert

Constructor & Destructor Documentation

◆ AssertViolation()

BSLS_KEYWORD_CONSTEXPR bsls::AssertViolation::AssertViolation ( const char *  comment,
const char *  fileName,
int  lineNumber,
const char *  assertLevel 
)
inline

Create a AssertViolation with the specified comment, fileName, lineNumber, and assertLevel. Note that the supplied assertLevel will usually be one of the k_LEVEL constants defined in bsls::Assert

Member Function Documentation

◆ assertLevel()

const char * bsls::AssertViolation::assertLevel ( ) const
inline

◆ comment()

const char * bsls::AssertViolation::comment ( ) const
inline

◆ fileName()

const char * bsls::AssertViolation::fileName ( ) const
inline

◆ lineNumber()

int bsls::AssertViolation::lineNumber ( ) const
inline

The documentation for this class was generated from the following file: