-/* $Id$
-
-This file is part of libmspstrings
-Copyright © 2006-2008 Mikko Rasa
-Distributed under the LGPL
-*/
-
#ifndef MSP_STRINGS_FMT_H_
#define MSP_STRINGS_FMT_H_
#include <ostream>
+#include <stdexcept>
#include <string>
namespace Msp {
+class format_error: public std::logic_error
+{
+public:
+ format_error(const std::string &w): std::logic_error(w) { }
+ virtual ~format_error() throw() { }
+};
+
+
/**
Stores formatting information for converting variables into strings. Can be
applied to an std::ostream or fed to lexical_cast. Also used internally by