/** @file exceptions.h
 *
 *	Declarations and definitions of some program exceptions.
 *
 *	(C) Ceslav Przywara 2008, MFF UK Prague
 *
 */

#ifndef _EXCEPTIONS_H
#define	_EXCEPTIONS_H

#include <stdexcept>

namespace ace {

/** Exception is thrown if incrementation of (unsigned) index would
 *	cause overflow of index datatype.
 */
class index_overflow: public std::overflow_error {
public:
	/**	@param message Exception message.
	 */
	index_overflow(const std::string& message): std::overflow_error(message) {}
};

} // namespace ace

#endif
