Package Biskit :: Module Errors
[hide private]
[frames] | no frames]

Source Code for Module Biskit.Errors

 1  ## Errors for all modules 
 2  ## 
 3  ## Biskit, a toolkit for the manipulation of macromolecular structures 
 4  ## Copyright (C) 2004-2006 Raik Gruenberg & Johan Leckner 
 5  ## 
 6  ## This program is free software; you can redistribute it and/or 
 7  ## modify it under the terms of the GNU General Public License as 
 8  ## published by the Free Software Foundation; either version 2 of the 
 9  ## License, or any later version. 
10  ## 
11  ## This program is distributed in the hope that it will be useful, 
12  ## but WITHOUT ANY WARRANTY; without even the implied warranty of 
13  ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 
14  ## General Public License for more details. 
15  ## 
16  ## You find a copy of the GNU General Public License in the file 
17  ## license.txt along with this program; if not, write to the Free 
18  ## Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 
19  ## 
20  ## 
21  ## $Revision: 2.6 $ 
22  ## last $Author: graik $ 
23  ## last $Date: 2007/03/05 10:28:21 $ 
24   
25  """ 
26  Errors raised by Biskit scripts. 
27  """ 
28   
29 -class BiskitError( Exception ):
30 """ 31 Root for all Errors raised by Biskit scripts. 32 """ 33 pass
34 35
36 -class HandledError( BiskitError ):
37 """ 38 Error raised by the ErrorHandler after an Error has been reported. 39 """ 40 pass
41 42
43 -class FatalError( HandledError ):
44 """ 45 Error raised by the ErrorHandler after a fatal Error has been reported. 46 """ 47 pass
48 49
50 -class NormalError( HandledError ):
51 """ 52 Error raised by the ErrorHandler after a normal Error has been reported. 53 """ 54 pass
55 56
57 -class XplorInputError( BiskitError ):
58 """ 59 Errors raised while generating xplor input script 60 """ 61 pass
62 63 ################## 64 ## (FAKE) TESTING 65 ################### 66 import Biskit.test as BT 67
68 -class Test(BT.BiskitTest):
69 """Error test""" 70
71 - def test_Errors( self ):
72 """Errors test (empty test)""" 73 pass
74