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.19 2001/11/05 19:22:33 sdw Exp $
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

Generated at Mon Nov 5 19:22:25 2001 for Simkin by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000