00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef TOOL_EXCEPTIONS_HH_
00023 # define TOOL_EXCEPTIONS_HH_
00024
00025 # include <stdexcept>
00026 # include <string>
00027
00028 namespace tool
00029 {
00030
00031 struct user_interruption: public std::runtime_error
00032 {
00033 user_interruption(const std::string&);
00034 };
00035
00036 struct file_error: public std::runtime_error
00037 {
00038 file_error(const std::string&);
00039 };
00040
00041 struct read_error: public file_error
00042 {
00043 read_error(const std::string&);
00044 };
00045
00046 struct write_error: public file_error
00047 {
00048 write_error(const std::string&);
00049 };
00050
00051 struct seek_error: public file_error
00052 {
00053 seek_error(const std::string&);
00054 };
00055
00056 }
00057
00058 # include "exceptions.hxx"
00059
00060 #endif // ! TOOL_EXCEPTIONS_HH_