Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

exception.cpp

00001 /*
00002  * Copyright (c) 2003, Raymond Bosman
00003  * Copyright (c) 2003, Frederik Holljen
00004  * All Rights Reserved.
00005  *
00006  * See COPYING for licensing.
00007  */
00008 
00009 
00010 #include "exception.hpp"
00011 #include <sstream>
00012 
00013 using namespace std;
00014 
00019 Exception::Exception( const std::string &error )
00020 {
00021     ErrorMsg = error;
00022 }
00023 
00025 
00033 Exception::Exception( const char *file, int line, const std::string &error )
00034 {
00035     stringstream ss;
00036     ss << file << ":" << line << " " << error;
00037     ErrorMsg = ss.str();
00038 }
00039 
00040 
00044 Exception::~Exception()
00045 {
00046 }

Generated on Mon Dec 1 14:26:27 2003 for Ck by doxygen 1.3.3