|
//
// Copyright (c) 2009 Roman Kecher (rmn@cplusplus.co.il)
//
// Distributed under the Code Project Open License, Version 1.02.
// See http://www.codeproject.com/info/cpol10.aspx
//
#ifndef __UNKNOWN_FORMAT_EXCEPTION_H__
#define __UNKNOWN_FORMAT_EXCEPTION_H__
#include <string>
#include <stdexcept>
/**
* This exception will be thrown by the
* KnownFormatFactory class when a filename is of an
* unknown format.
*/
class UnknownFormatException : public std::runtime_error {
public:
UnknownFormatException (const std::string &filename)
: std::runtime_error("File " + filename + " is of an unknown format") {}
};
#endif // __UNKNOWN_FORMAT_EXCEPTION_H__
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.