TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Errors.cpp File Reference

This file contains definitions of functions used for reporting critical application errors. More...

#include "Errors.h"
#include <cstdio>
#include <cstdlib>
#include <thread>
#include <cstdarg>
+ Include dependency graph for Errors.cpp:

Namespaces

 Trinity
 

Functions

void Trinity::Assert (char const *file, int line, char const *function, char const *message)
 
void Trinity::Assert (char const *file, int line, char const *function, char const *message, char const *format,...)
 
void Trinity::Fatal (char const *file, int line, char const *function, char const *message,...)
 
void Trinity::Error (char const *file, int line, char const *function, char const *message)
 
void Trinity::Warning (char const *file, int line, char const *function, char const *message)
 
void Trinity::Abort (char const *file, int line, char const *function)
 
void Trinity::AbortHandler (int)
 

Detailed Description

This file contains definitions of functions used for reporting critical application errors.

It is very important that (std::)abort is NEVER called in place of *((volatile int*)NULL) = 0; Calling abort() on Windows does not invoke unhandled exception filters - a mechanism used by WheatyExceptionReport to log crashes. exit(1) calls here are for static analysis tools to indicate that calling functions defined in this file terminates the application.