source: trunk/lib/rmdirhier.h @ 687

Last change on this file since 687 was 687, checked in by Peter Johansson, 13 years ago

Merged patch release 0.6.6 to trunk. Delta 0.6.6 - 0.6.5

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1#ifndef _theplu_svndigest_rmdirhier_
2#define _theplu_svndigest_rmdirhier_
3
4// $Id: rmdirhier.h 687 2008-08-04 19:37:10Z peter $
5
6/*
7  Copyright (C) 2006 Jari Häkkinen, Peter Johansson
8  Copyright (C) 2007 Peter Johansson
9
10  This file is part of svndigest, http://dev.thep.lu.se/svndigest
11
12  svndigest is free software; you can redistribute it and/or modify it
13  under the terms of the GNU General Public License as published by
14  the Free Software Foundation; either version 2 of the License, or
15  (at your option) any later version.
16
17  svndigest is distributed in the hope that it will be useful, but
18  WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  General Public License for more details.
21
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25  02111-1307, USA.
26*/
27
28#include <stdexcept>
29#include <string>
30
31namespace theplu {
32namespace svndigest {
33
34  struct DirectoryError : public std::runtime_error
35  { inline DirectoryError(const std::string& s) : runtime_error(s) {} };
36
37  struct BadDirectory : public DirectoryError
38  { inline BadDirectory(const std::string& s) : DirectoryError(s) {} };
39
40  struct DirectoryOpenError : public DirectoryError
41  { inline DirectoryOpenError(const std::string& s) : DirectoryError(s) {} };
42
43  struct FileDeleteError : public DirectoryError
44  { FileDeleteError(const std::string& s) : DirectoryError(s) {} };
45
46  struct DirectoryDeleteError : public DirectoryError
47  { DirectoryDeleteError(const std::string& s) : DirectoryError(s) {} };
48
49  void rmdirhier(const std::string& path);
50
51}} // of namespace svndigest and namespace theplu
52
53#endif
Note: See TracBrowser for help on using the repository browser.