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

skBoundsException.h

00001 /*
00002   Copyright 1996-2001
00003   Simon Whiteside
00004 
00005   $Id: skBoundsException.h,v 1.7 2001/11/05 19:22:33 sdw Exp $
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

Generated on Tue Nov 20 17:56:21 2001 for Simkin by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001