00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef SKRUNTIMEEXCEPTION_H
00022 #define SKRUNTIMEEXCEPTION_H
00023
00024 #include "skException.h"
00025 #include "skString.h"
00026
00030 class CLASSEXPORT skRuntimeException : public skException
00031 {
00032 public:
00036 skRuntimeException(const skString& location,int line_num,const skString& msg)
00037 : m_Location(location),m_Msg(msg),m_LineNum(line_num){
00038 }
00042 skString toString() const {
00043 return m_Location+skSTR(":")+skString::from(m_LineNum)+skSTR("-")+m_Msg;
00044 }
00048 skString location() const{
00049 return m_Location;
00050 }
00054 int lineNum() const{
00055 return m_LineNum;
00056 }
00057 private:
00058 int m_LineNum;
00059 skString m_Msg;
00060 skString m_Location;
00061 };
00062 #endif