Update to latest Arbutils, include stacktrace.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: Deukhoofd <Deukhoofd@gmail.com>
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
#ifndef CREATURELIB_CREATUREEXCEPTION_HPP
|
||||
#define CREATURELIB_CREATUREEXCEPTION_HPP
|
||||
|
||||
#include <Arbutils/Exception.hpp>
|
||||
#include <cstring>
|
||||
#include <sstream>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#define __FILENAME__ (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__)
|
||||
|
||||
class CreatureException : public std::runtime_error {
|
||||
class CreatureException : public ArbUt::Exception {
|
||||
public:
|
||||
explicit CreatureException(const std::string& error) : std::runtime_error(error) {}
|
||||
explicit CreatureException(const std::string& error) : ArbUt::Exception(error) {}
|
||||
virtual ~CreatureException() = default;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user