libtcod
Loading...
Searching...
No Matches
error.hpp File Reference

Error handling module. More...

#include <exception>
#include <filesystem>
#include <stdexcept>
#include <string>
#include "error.h"

Go to the source code of this file.

Namespaces

namespace  tcod
 The libtcod namespace.

Functions

TCOD_Error tcod::set_error (const std::string &msg)
 Set an error message and return a relevant error code, usually -1.
TCOD_Error tcod::set_error (const std::exception &e)
int tcod::check_throw_error (int error)
 Check and throw error messages.
TCOD_Error tcod::check_throw_error (TCOD_Error error)
void tcod::check_path (const std::filesystem::path &path)
 Throw an exception if the given path does not exist.

Detailed Description

Error handling module.