TorchCraftAI
A bot for machine learning research on StarCraft: Brood War
Public Member Functions | Public Attributes | Static Protected Member Functions | List of all members
common::Exception Class Reference

#include <assert.h>

Inherits std::runtime_error.

Inherited by common::AssertionFailure.

Public Member Functions

 Exception (std::string_view what, const char *file="unknown_file", int line=0)
 
 Exception (std::string_view what, const char *file, int line, backward::StackTrace st)
 
void print ()
 

Public Attributes

const char * file
 
int line
 
backward::StackTrace stackTrace
 

Static Protected Member Functions

static std::string formatErrorMessage (std::string_view message, const char *file, int line)
 

Constructor & Destructor Documentation

common::Exception::Exception ( std::string_view  what,
const char *  file = "unknown_file",
int  line = 0 
)
common::Exception::Exception ( std::string_view  what,
const char *  file,
int  line,
backward::StackTrace  st 
)

Member Function Documentation

std::string common::Exception::formatErrorMessage ( std::string_view  message,
const char *  file,
int  line 
)
staticprotected
void common::Exception::print ( )

Member Data Documentation

const char* common::Exception::file
int common::Exception::line
backward::StackTrace common::Exception::stackTrace

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