/***************************************************************************
 * contractException.h: implementation of ContractException class
 *
 * This file is part of KTabEdit, a KDE tabulature editor
 *
 * copyright (C) 2007- the KTabEdit development team <mrgwen@gmail.com>
 ***************************************************************************/

/***************************************************************************
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * See the file COPYING for more information.
 ***************************************************************************/

#ifndef CONTRACTEXCEPTION_H
#define CONTRACTEXCEPTION_H

#include <exception>
#include <string>

namespace ktabedit
{
	class ContractException : public std::exception {
		public:
			ContractException(const std::string& msg) throw();
			ContractException(const std::string& msg, const std::string& backtrace) throw();
			virtual ~ContractException() throw();
			
			virtual const char* what() const throw();
		private:
			std::string mMsg;
			std::string mBacktrace;
	};
}

#endif
