xoreos  0.0.5
Namespaces | Functions | Variables
error.cpp File Reference

Basic exceptions to throw. More...

#include <cstdarg>
#include <cstdio>
#include <cstdlib>
#include "src/common/error.h"
#include "src/common/util.h"
Include dependency graph for error.cpp:

Go to the source code of this file.

Namespaces

 Common
 

Functions

void Common::printException (Exception &e, const UString &prefix="ERROR: ")
 Print a whole exception stack to stderr and the log. More...
 
static void Common::exceptionDispatcher (const char *prefix, const char *reason="")
 
void Common::exceptionDispatcherError (const char *s,...) GCC_PRINTF(1
 Exception dispatcher that prints the exception as an error, and adds another reason on top. More...
 
void Common::exceptionDispatcherError ()
 Exception dispatcher that prints the exception as an error. More...
 
void Common::exceptionDispatcherWarning (const char *s,...) GCC_PRINTF(1
 Exception dispatcher that prints the exception as a warning, and adds another reason on top. More...
 
void Common::exceptionDispatcherWarning ()
 Exception dispatcher that prints the exception as a warning. More...
 

Variables

const Exception Common::kOpenError ("Can't open file")
 Exception when a file couldn't be opened. More...
 
const Exception Common::kReadError ("Read error")
 Exception when reading from a stream failed. More...
 
const Exception Common::kSeekError ("Seek error")
 Exception when seeking a stream failed. More...
 
const Exception Common::kWriteError ("Write error")
 Exception when writing to a stream failed. More...
 

Detailed Description

Basic exceptions to throw.

Definition in file error.cpp.