Assignments
Assignments
exceptions.h File Reference
#include <exception>
#include <string>
#include <sstream>
#include <iostream>

Go to the source code of this file.

Classes

struct  Util::Exception
 

Namespaces

namespace  Util
 

Macros

#define VERBOSE_MESSAGING
 
#define MSVC_WARNING(x)
 
#define WARN(...)
 
#define WARN_ONCE(...)
 
#define THROW(...)
 
#define ERROR_OUT(...)
 

Functions

template<typename ... Arguments>
void Util::_AddToMessageStream (std::stringstream &stream, Arguments ... arguments)
 
void Util::_AddToMessageStream (std::stringstream &stream)
 
template<typename Argument, typename ... Arguments>
void Util::_AddToMessageStream (std::stringstream &stream, Argument argument, Arguments ... arguments)
 
template<typename ... Arguments>
std::string Util::MakeMessageString (std::string header, std::string fileName, int line, std::string functionName, Arguments ... arguments)
 
template<typename ... Args>
void Util::Throw (const char *fileName, int line, const char *functionName, Args ... args)
 
template<typename ... Args>
void Util::Warn (const char *fileName, int line, const char *functionName, Args ... args)
 
template<typename ... Args>
void Util::ErrorOut (const char *fileName, int line, const char *functionName, Args ... args)
 

Macro Definition Documentation

◆ ERROR_OUT

#define ERROR_OUT ( ...)
Value:
Util::ErrorOut( __FILE__ , __LINE__ , __FUNCTION__ , __VA_ARGS__ )
void ErrorOut(const char *fileName, int line, const char *functionName, Args ... args)
Definition exceptions.h:99

◆ MSVC_WARNING

#define MSVC_WARNING ( x)

◆ THROW

#define THROW ( ...)
Value:
Util::Throw( __FILE__ , __LINE__ , __FUNCTION__ , __VA_ARGS__ )
void Throw(const char *fileName, int line, const char *functionName, Args ... args)
Definition exceptions.h:91

◆ VERBOSE_MESSAGING

#define VERBOSE_MESSAGING

◆ WARN

#define WARN ( ...)
Value:
Util::Warn( __FILE__ , __LINE__ , __FUNCTION__ , __VA_ARGS__ )
void Warn(const char *fileName, int line, const char *functionName, Args ... args)
Definition exceptions.h:93

◆ WARN_ONCE

#define WARN_ONCE ( ...)
Value:
{ static bool firstTime = true ; if( firstTime ) Util::Warn( __FILE__ , __LINE__ , __FUNCTION__ , __VA_ARGS__ ) ; firstTime = false; }