sound_exception.h

Go to the documentation of this file.
00001 /*****************************************************************************/
00002 /*!
00003  * \file sound_exception.h
00004  * \brief An exception to be thrown when unsoundness is detected in a proof rule
00005  * 
00006  * Author: Sergey Berezin
00007  * 
00008  * Created: Fri Jun  6 10:48:38 2003
00009  *
00010  * <hr>
00011  *
00012  * License to use, copy, modify, sell and/or distribute this software
00013  * and its documentation for any purpose is hereby granted without
00014  * royalty, subject to the terms and conditions defined in the \ref
00015  * LICENSE file provided with this distribution.
00016  * 
00017  * <hr>
00018  * 
00019  */
00020 /*****************************************************************************/
00021 
00022 #ifndef _cvc3__sound_exception_h_
00023 #define _cvc3__sound_exception_h_
00024 
00025 #include <string>
00026 #include <iostream>
00027 #include "exception.h"
00028 
00029 namespace CVC3 {
00030 
00031   class SoundException: public Exception {
00032   public:
00033     // Constructors
00034     SoundException() { }
00035     SoundException(const std::string& msg): Exception(msg) { }
00036     SoundException(const char* msg): Exception(msg) { }
00037     // Destructor
00038     virtual ~SoundException() { }
00039     virtual std::string toString() const {
00040       return "Soundness error: " + d_msg;
00041     }
00042   }; // end of class SoundException
00043 } // end of namespace CVC3 
00044 
00045 #endif

Generated on Wed Nov 18 16:13:31 2009 for CVC3 by  doxygen 1.5.2