Package fliesclient :: Package flieslib :: Module error
[hide private]
[frames] | no frames]

Source Code for Module fliesclient.flieslib.error

 1  #vim:set et sts=4 sw=4:  
 2  #  
 3  # Flies Python Client 
 4  # 
 5  # Copyright (c) 2010 Jian Ni <jni@redhat.com> 
 6  # Copyright (c) 2010 Red Hat, Inc. 
 7  # 
 8  # This library is free software; you can redistribute it and/or 
 9  # modify it under the terms of the GNU Lesser General Public 
10  # License as published by the Free Software Foundation; either 
11  # version 2 of the License, or (at your option) any later version. 
12  # 
13  # This library is distributed in the hope that it will be useful, 
14  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
15  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
16  # GNU Lesser General Public License for more details. 
17  # 
18  # You should have received a copy of the GNU Lesser General Public 
19  # License along with this program; if not, write to the 
20  # Free Software Foundation, Inc., 59 Temple Place, Suite 330, 
21  # Boston, MA  02111-1307  USA 
22   
23   
24  __all__ = ( 
25          "NoSuchProjectException", "InvalidOptionException",  
26          "NoSuchFileException", "InvalidPOTFileException", 
27          "UnAuthorizedException", "BadRequestException", 
28          "ProjectExistException", "UnAvaliableResourceException", 
29          "UnAvaliablePOTException", "BadRequestBodyException", 
30          "SameNameDocumentException" 
31  ) 
32 -class FliesException(Exception):
33 - def __init__(self, expr, msg):
34 self.expr = expr 35 self.msg = msg
36
37 -class NoSuchProjectException(FliesException):
38 pass
39
40 -class InvalidOptionException(FliesException):
41 pass
42
43 -class NoSuchFileException(FliesException):
44 pass
45
46 -class InvalidPOTFileException(FliesException):
47 pass
48
49 -class UnAuthorizedException(FliesException):
50 pass
51
52 -class UnAvaliablePOTException(FliesException):
53 pass
54
55 -class UnAvaliableResourceException(FliesException):
56 pass
57
58 -class BadRequestException(FliesException):
59 pass
60
61 -class ProjectExistException(FliesException):
62 pass
63
64 -class BadRequestBodyException(FliesException):
65 pass
66
67 -class SameNameDocumentException(FliesException):
68 pass
69