source: branches/better_matrix_class/lib/utility/Exception.h @ 405

Last change on this file since 405 was 405, checked in by Jari Häkkinen, 17 years ago

Minor change to IO_error exception.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 486 bytes
Line 
1// $Id: Exception.h 405 2005-11-27 22:35:09Z jari $
2
3#ifndef _theplu_utility_exception_
4#define _theplu_utility_exception_
5
6#include <stdexcept>
7#include <string>
8
9namespace theplu {
10namespace utility {
11
12  ///
13  /// @brief Class
14  ///
15  /// @todo document
16  ///
17  class IO_error : public std::runtime_error
18  {
19  public:
20    IO_error(void) throw() : std::runtime_error("IO_error:") {}
21    IO_error(std::string message) throw()
22      : std::runtime_error("IO_error: " + message) {}
23  };
24
25
26}} // of namespace utility and namespace theplu
27
28#endif
29
30
Note: See TracBrowser for help on using the repository browser.