summaryrefslogtreecommitdiff
path: root/library/db_file.h
diff options
context:
space:
mode:
Diffstat (limited to 'library/db_file.h')
-rw-r--r--library/db_file.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/library/db_file.h b/library/db_file.h
index 8e1f9c94..ea9d68ad 100644
--- a/library/db_file.h
+++ b/library/db_file.h
@@ -20,7 +20,13 @@ struct DirInformation
};
typedef boost::shared_ptr<const DirInformation> DirInfoPtr;
-std::pair<DirInfoPtr, DirInfoPtr> loadFromDisk(const BaseDirMapping& baseMapping); //throw (FileError) -> return value always bound!
+class FileErrorDatabaseNotExisting : public FileError
+{
+public:
+ FileErrorDatabaseNotExisting(const wxString& message) : FileError(message) {}
+};
+
+std::pair<DirInfoPtr, DirInfoPtr> loadFromDisk(const BaseDirMapping& baseMapping); //throw (FileError, FileErrorDatabaseNotExisting) -> return value always bound!
}
#endif // DBFILE_H_INCLUDED
bgstack15