00001 //-------------------------------------------------- 00012 //--------------------------------------------------- 00013 00014 #include "exception.h" 00015 00016 namespace imedgine 00017 { 00018 Exception::Exception(exception_type type, std::string detail) 00019 : type_(type), 00020 detail_(detail) 00021 { 00022 } 00023 00024 //--------------------------------------------------- 00025 00026 Exception::Exception(Exception const& src) 00027 : type_(src.type_), 00028 detail_(src.detail_) 00029 { 00030 } 00031 00032 //--------------------------------------------------- 00033 00034 Exception::~Exception() throw() 00035 { 00036 } 00037 00038 //--------------------------------------------------- 00039 00040 char const* Exception::what() const throw() 00041 { 00042 return(""); 00043 } 00044 00045 //--------------------------------------------------- 00046 00047 exception_type Exception::getType() const 00048 { 00049 return(type_); 00050 } 00051 00052 //--------------------------------------------------- 00053 00054 std::string const& Exception::getDetail() const 00055 { 00056 return(detail_); 00057 } 00058 }