Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #pragma once
00015
00018 #include <exception>
00019 #include <string>
00020
00021 namespace kNet
00022 {
00023
00024 class NetException : public std::exception
00025 {
00026 public:
00027 explicit NetException(const char *reason)
00028 :exception(reason)
00029 {
00030 }
00031
00032 ~NetException() throw()
00033 {
00034 }
00035
00036 const char *what() const throw() { return exception.c_str(); }
00037
00038 private:
00039 std::string exception;
00040 };
00041
00042 }