1234567891011121314151617181920212223242526272829 |
- #ifndef AFUN_CORE_EXCEPTION_INLINE_H
- #define AFUN_CORE_EXCEPTION_INLINE_H
- #include <utility>
- #include "core-exception.h"
- namespace aFuncore {
- aFuncoreException::aFuncoreException(const std::string &msg) : aFunException{msg} {
- }
- EnvironmentDestructException::EnvironmentDestructException() : aFuncoreException("Environment Destruct Error") {
- }
- RuntimeError::RuntimeError(const std::string &msg, std::string type_) : aFuncoreException(msg), type{std::move(type_)} {
- }
- const std::string &RuntimeError::getType() const {
- return type;
- }
- ArgumentError::ArgumentError() : RuntimeError("Argument mismatch", "ArgumentError") {
- }
- }
- #endif //AFUN_CORE_EXCEPTION_INLINE_H
|