frameutils/fferrors.hh

00001 /* -*- mode: c++; c-basic-offset: 4; -*- */
00002 #ifndef FFERRORS_HH
00003 #define FFERRORS_HH
00004 
00005 #include <stdexcept>
00006 
00007 //======================================  Error classes
00011 class BadFile : public std::runtime_error {
00012 public:
00016      BadFile( const std::string& msg );
00017 };
00018 
00022 class NoData : public std::runtime_error {
00023 public:
00027     NoData( const std::string& msg );
00028 };
00029 
00030 //======================================  Inline methods
00031 inline
00032 BadFile::BadFile( const std::string& msg )
00033         : std::runtime_error( msg )
00034 {}
00035 
00036 inline
00037 NoData::NoData( const std::string& msg )
00038         : std::runtime_error( msg )
00039 {}
00040 
00041 #endif

Generated on Sun Mar 8 19:20:46 2009 for dmt by  doxygen 1.5.4