1
0

core-exception.inline.h 722 B

1234567891011121314151617181920212223242526272829
  1. #ifndef AFUN_CORE_EXCEPTION_INLINE_H
  2. #define AFUN_CORE_EXCEPTION_INLINE_H
  3. #include <utility>
  4. #include "core-exception.h"
  5. namespace aFuncore {
  6. aFuncoreException::aFuncoreException(const std::string &msg) : aFunException{msg} {
  7. }
  8. EnvironmentDestructException::EnvironmentDestructException() : aFuncoreException("Environment Destruct Error") {
  9. }
  10. RuntimeError::RuntimeError(const std::string &msg, std::string type_) : aFuncoreException(msg), type{std::move(type_)} {
  11. }
  12. const std::string &RuntimeError::getType() const {
  13. return type;
  14. }
  15. ArgumentError::ArgumentError() : RuntimeError("Argument mismatch", "ArgumentError") {
  16. }
  17. }
  18. #endif //AFUN_CORE_EXCEPTION_INLINE_H