00001
00002
00003
00004
00005
00006
00007 #ifndef SKBOUNDSEXCEPTION_H
00008 #define SKBOUNDSEXCEPTION_H
00009
00010 #include "skString.h"
00011
00012 const int skBoundsException_Code=1;
00013
00017 class CLASSEXPORT skBoundsException {
00018 public:
00022 skBoundsException(const skString& msg,const Char * file,int linenum)
00023 : m_Msg(msg),m_File(file),m_LineNum(linenum){
00024 }
00028 skString toString() const{
00029 return skString::literal(m_File)+skSTR(":")+skString::from(m_LineNum)+m_Msg;
00030 }
00031 private:
00032 skString m_Msg;
00033 const Char * m_File;
00034 int m_LineNum;
00035
00036 };
00037 #endif