Assertion.hpp File Reference

#include "blocxx/BLOCXX_config.h"
#include "blocxx/Exception.hpp"

Go to the source code of this file.

Namespaces

namespace  BLOCXX_NAMESPACE

Classes

class  BLOCXX_NAMESPACE::AssertionException

Defines

#define BLOCXX_ASSERT(CON)
 BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(), it throws an AssertionException.
#define BLOCXX_ASSERTMSG(CON, MSG)
 BLOCXX_ASSERTMSG works the same as BLOCXX_ASSERT, but with a second string parameter that will be added to the exception message on failure.


Define Documentation

#define BLOCXX_ASSERT ( CON   ) 

BLOCXX_ASSERT works similar to the assert() macro, but instead of calling abort(), it throws an AssertionException.

Parameters:
CON The condition which will be evaluated.

Definition at line 57 of file Assertion.hpp.

Referenced by BLOCXX_NAMESPACE::ServerSocketImpl::accept(), BLOCXX_NAMESPACE::acceptSSL(), BLOCXX_NAMESPACE::GenericRWLockImpl< IdT, CompareT >::acquireReadLock(), BLOCXX_NAMESPACE::GenericRWLockImpl< IdT, CompareT >::acquireWriteLock(), BLOCXX_NAMESPACE::SSLTrustStore::addCertificate(), BLOCXX_NAMESPACE::AppenderLogger::addLogAppender(), BLOCXX_NAMESPACE::BaseStreamBuffer::buffer_from_device(), BLOCXX_NAMESPACE::BaseStreamBuffer::buffer_to_device(), BLOCXX_NAMESPACE::UTF8Utils::charCount(), BLOCXX_NAMESPACE::SSLCtxMgr::checkCert(), BLOCXX_NAMESPACE::CmdLineParser::CmdLineParser(), BLOCXX_NAMESPACE::SocketBaseImpl::connect(), BLOCXX_NAMESPACE::SSLSocketImpl::connectSSL(), BLOCXX_NAMESPACE::connectWithSSL(), BLOCXX_NAMESPACE::IConv_t::convert(), BLOCXX_NAMESPACE::Socket::createShutDownMechanism(), BLOCXX_NAMESPACE::ThreadCounter::decThreadCount(), BLOCXX_NAMESPACE::ServerSocketImpl::fillAddrParms(), BLOCXX_NAMESPACE::DelayedFormat::formatWithString(), BLOCXX_NAMESPACE::SSLCtxMgr::generateEphRSAKey(), generateRandomTimerData(), BLOCXX_NAMESPACE::getMaxOpenFiles(), BLOCXX_NAMESPACE::SSLCtxMgr::getOpenSSLErrorDescription(), BLOCXX_NAMESPACE::SocketAddress::getPort(), BLOCXX_NAMESPACE::Thread::join(), BLOCXX_NAMESPACE::SSLCtxMgr::loadDHParams(), BLOCXX_NAMESPACE::Logger::Logger(), BLOCXX_NAMESPACE::String::operator[](), BLOCXX_NAMESPACE::path_security(), BLOCXX_NAMESPACE::Logger::processLogMessage(), BLOCXX_NAMESPACE::Secure::Impl::rand_range(), BLOCXX_NAMESPACE::Secure::Impl::rand_uint_lt(), BLOCXX_NAMESPACE::GenericRWLockImpl< IdT, CompareT >::releaseWriteLock(), BLOCXX_NAMESPACE::Select::selectRW(), BLOCXX_NAMESPACE::Select::selectRWEpoll(), BLOCXX_NAMESPACE::Select::selectRWPoll(), BLOCXX_NAMESPACE::Select::selectRWSelect(), BLOCXX_NAMESPACE::ServerSocketImpl::ServerSocketImpl(), BLOCXX_NAMESPACE::set_desc_blocking(), BLOCXX_NAMESPACE::PosixUnnamedPipe::setBlocking(), BLOCXX_NAMESPACE::Logger::setDefaultComponent(), BLOCXX_NAMESPACE::Exec::PreExec::setNewProcessGroup(), BLOCXX_NAMESPACE::Socket::shutdownAllSockets(), BLOCXX_NAMESPACE::shutdownSSL(), BLOCXX_NAMESPACE::SocketBaseImpl::SocketBaseImpl(), BLOCXX_NAMESPACE::SSLSocketImpl::SSLSocketImpl(), BLOCXX_NAMESPACE::String::String(), BLOCXX_NAMESPACE::UTF8Utils::StringToUCS2Common(), BLOCXX_NAMESPACE::ThreadBarrier::ThreadBarrier(), BLOCXX_NAMESPACE::ThreadBarrierImpl::ThreadBarrierImpl(), BLOCXX_NAMESPACE::Thread::threadRunner(), BLOCXX_NAMESPACE::ThreadImpl::threadStarter(), BLOCXX_NAMESPACE::SocketAddress::toString(), BLOCXX_NAMESPACE::UTF8Utils::UTF8toUCS4(), BLOCXX_NAMESPACE::verify_callback(), and BLOCXX_NAMESPACE::SocketUtils::waitForIO().

#define BLOCXX_ASSERTMSG ( CON,
MSG   ) 

BLOCXX_ASSERTMSG works the same as BLOCXX_ASSERT, but with a second string parameter that will be added to the exception message on failure.

Parameters:
CON The condition which will be evaluated.
MSG The extra message. A C string literal.

Definition at line 71 of file Assertion.hpp.

Referenced by BLOCXX_NAMESPACE::initGuardAndKey(), BLOCXX_NAMESPACE::LogAppender::LogAppender(), BLOCXX_NAMESPACE::LogAppender::setThreadLogAppender(), and BLOCXX_NAMESPACE::SSLCtxBase::SSLCtxBase().


Generated on Wed Feb 25 19:05:00 2009 for blocxx by  doxygen 1.5.6