Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

skRuntimeException.h

00001 /*
00002   Copyright 1996-2001
00003   Simon Whiteside
00004 
00005   $Id: skRuntimeException_h-source.html,v 1.17 2001/07/05 09:56:08 sdw Exp $
00006 */
00007 #ifndef SKRUNTIMEEXCEPTION_H
00008 #define SKRUNTIMEEXCEPTION_H
00009 
00010 #include "skString.h"
00011 
00015 class skRuntimeException {
00016  public:
00020   skRuntimeException(const skString& location,int line_num,const skString& msg) 
00021       : m_Location(location),m_Msg(msg),m_LineNum(line_num){
00022   }
00026   skString toString() const {
00027     return m_Location+skSTR(":")+skString::from(m_LineNum)+skSTR("-")+m_Msg;
00028   }
00032   skString location() const{
00033     return m_Location;
00034   }
00038   int lineNum() const{
00039     return m_LineNum;
00040   }
00041 private:
00042   int m_LineNum;
00043   skString m_Msg;
00044   skString m_Location;
00045 };
00046 #endif

Generated at Thu Jul 5 10:55:42 2001 for Simkin by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000