Cytopia  0.3
A city building simulation game
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Exception.hxx File Reference
#include <stdexcept>
#include <exception>
+ Include dependency graph for Exception.hxx:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  CytopiaError
 A generic error in Cytopia. More...
 
class  ConfigurationError
 A configuration error. More...
 
class  UnimplementedError
 An unimplemented function was called. More...
 
class  AudioError
 An audio-related error occured. More...
 
class  FontError
 A font-related error occured. More...
 
class  DisplayError
 A display error occured. More...
 
class  UIError
 A UI-related error occured. More...
 
class  CompressionError
 A compression error occured. More...
 

Macros

#define ERROR_MSG   "In file " __BOLD__ __RED__ __FILE__ ":" __line__ __CLEAR__ "\n\t"
 
#define NESTED_MSG   "Called from " __BOLD__ __RED__ __FILE__ ":" __line__ __CLEAR__ "\n\t"
 
#define STRINGIFY(x)   #x
 
#define STRINGIFY2(x)   STRINGIFY(x)
 
#define __line__   STRINGIFY2(__LINE__)
 
#define TRACE_INFO   "Exception thrown from " + string(__PRETTY_FUNCTION__) + " at " __FILE__ ":" __line__ " - "
 
#define _CRT_SECURE_NO_WARNINGS
 

Typedefs

using RuntimeError = std::runtime_error
 

Functions

void systemSetupCrashHandler ()
 install OS crash handler More...
 

Macro Definition Documentation

◆ __line__

#define __line__   STRINGIFY2(__LINE__)

Definition at line 11 of file Exception.hxx.

◆ _CRT_SECURE_NO_WARNINGS

#define _CRT_SECURE_NO_WARNINGS

Definition at line 15 of file Exception.hxx.

◆ ERROR_MSG

#define ERROR_MSG   "In file " __BOLD__ __RED__ __FILE__ ":" __line__ __CLEAR__ "\n\t"

Definition at line 7 of file Exception.hxx.

◆ NESTED_MSG

#define NESTED_MSG   "Called from " __BOLD__ __RED__ __FILE__ ":" __line__ __CLEAR__ "\n\t"

Definition at line 8 of file Exception.hxx.

◆ STRINGIFY

#define STRINGIFY (   x)    #x

Definition at line 9 of file Exception.hxx.

◆ STRINGIFY2

#define STRINGIFY2 (   x)    STRINGIFY(x)

Definition at line 10 of file Exception.hxx.

◆ TRACE_INFO

#define TRACE_INFO   "Exception thrown from " + string(__PRETTY_FUNCTION__) + " at " __FILE__ ":" __line__ " - "

Definition at line 12 of file Exception.hxx.

Typedef Documentation

◆ RuntimeError

using RuntimeError = std::runtime_error

Definition at line 23 of file Exception.hxx.

Function Documentation

◆ systemSetupCrashHandler()

void systemSetupCrashHandler ( )

install OS crash handler

Definition at line 206 of file Exception.cxx.

206 {}
+ Here is the caller graph for this function: