Package daklib :: Module dak_exceptions
[hide private]
[frames] | no frames]

Source Code for Module daklib.dak_exceptions

 1  """ 
 2  Exception classes used in dak 
 3   
 4  @contact: Debian FTP Master <ftpmaster@debian.org> 
 5  @copyright: 2008  Mark Hymers <mhy@debian.org> 
 6  @license: GNU General Public License version 2 or later 
 7  """ 
 8   
 9  # This program is free software; you can redistribute it and/or modify 
10  # it under the terms of the GNU General Public License as published by 
11  # the Free Software Foundation; either version 2 of the License, or 
12  # (at your option) any later version. 
13   
14  # This program is distributed in the hope that it will be useful, 
15  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
16  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
17  # GNU General Public License for more details. 
18   
19  # You should have received a copy of the GNU General Public License 
20  # along with this program; if not, write to the Free Software 
21  # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
22   
23   
24 -class DakError(Exception):
25 """ 26 Base class for all simple errors in this module. 27 """ 28 pass
29 30
31 -class ParseMaintError(DakError):
32 "Exception raised for errors in parsing a maintainer field." 33 pass
34 35
36 -class ParseChangesError(DakError):
37 "Exception raised for errors in parsing a changes file." 38 pass
39 40
41 -class InvalidDscError(DakError):
42 "Exception raised for invalid dsc files." 43 pass
44 45
46 -class UnknownFormatError(DakError):
47 "Exception raised for unknown Format: lines in changes files." 48 pass
49 50
51 -class NoFilesFieldError(DakError):
52 """Exception raised for missing files field in dsc/changes.""" 53 pass
54 55
56 -class CantOverwriteError(DakError):
57 "Exception raised when files can't be overwritten." 58 pass
59 60
61 -class SendmailFailedError(DakError):
62 "Exception raised when Sendmail invocation failed." 63 pass
64 65
66 -class NoFreeFilenameError(DakError):
67 "Exception raised when no alternate filename was found." 68 pass
69 70
71 -class TransitionsError(DakError):
72 "Exception raised when transitions file can't be parsed." 73 pass
74 75
76 -class DBUpdateError(DakError):
77 "Exception raised - could not update the database" 78 pass
79 80
81 -class AlreadyLockedError(DakError):
82 "Exception raised - package already locked by someone else" 83 pass
84