Merge Core library into Library, as with its utility functionality merged into Arbutils, it's becoming less and less useful.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
13
src/Library/Exceptions/CreatureException.hpp
Normal file
13
src/Library/Exceptions/CreatureException.hpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#ifndef CREATURELIB_CREATUREEXCEPTION_HPP
|
||||
#define CREATURELIB_CREATUREEXCEPTION_HPP
|
||||
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
class CreatureException : public std::runtime_error {
|
||||
public:
|
||||
explicit CreatureException(const std::string& error) : std::runtime_error(error) {}
|
||||
virtual ~CreatureException() = default;
|
||||
};
|
||||
|
||||
#endif // CREATURELIB_CREATUREEXCEPTION_HPP
|
||||
12
src/Library/Exceptions/NotImplementedException.hpp
Normal file
12
src/Library/Exceptions/NotImplementedException.hpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef CREATURELIB_NOTIMPLEMENTEDEXCEPTION_HPP
|
||||
#define CREATURELIB_NOTIMPLEMENTEDEXCEPTION_HPP
|
||||
|
||||
#include "CreatureException.hpp"
|
||||
|
||||
class NotImplementedException : CreatureException {
|
||||
public:
|
||||
NotImplementedException(std::string error) : CreatureException(error) {}
|
||||
NotImplementedException() : CreatureException("Not Implemented") {}
|
||||
};
|
||||
|
||||
#endif // CREATURELIB_NOTIMPLEMENTEDEXCEPTION_HPP
|
||||
11
src/Library/Exceptions/NotReachableException.hpp
Normal file
11
src/Library/Exceptions/NotReachableException.hpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef CREATURELIB_NOTREACHABLEEXCEPTION_HPP
|
||||
#define CREATURELIB_NOTREACHABLEEXCEPTION_HPP
|
||||
|
||||
#include "CreatureException.hpp"
|
||||
|
||||
class NotReachableException : CreatureException {
|
||||
public:
|
||||
NotReachableException() : CreatureException("Not Reachable"){};
|
||||
};
|
||||
|
||||
#endif // CREATURELIB_NOTREACHABLEEXCEPTION_HPP
|
||||
Reference in New Issue
Block a user