00001 00002 00003 00004 00005 00006
00007 #ifndef SKRUNTIMEEXCEPTION_H
00008 #define SKRUNTIMEEXCEPTION_H
00009
00010 #include "skString.h"
00011
00012 const int skRuntimeException_Code=3;
00013
00017 class CLASSEXPORT skRuntimeException {
00018 public:
00022 skRuntimeException(const skString& location,int line_num,const skString& msg)
00023 : m_Location(location),m_Msg(msg),m_LineNum(line_num){
00024 }
00028 skString toString() const {
00029 return m_Location+skSTR(":")+skString::from(m_LineNum)+skSTR("-")+m_Msg;
00030 }
00034 skString location() const{
00035 return m_Location;
00036 }
00040 int lineNum() const{
00041 return m_LineNum;
00042 }
00043 private:
00044 int m_LineNum;
00045 skString m_Msg;
00046 skString m_Location;
00047 };
00048 #endif