Package x2go :: Module x2go_exceptions
[frames] | no frames]

Source Code for Module x2go.x2go_exceptions

 1  # -*- coding: utf-8 -*- 
 2   
 3  # Copyright (C) 2010-2012 by Mike Gabriel <mike.gabriel@das-netzwerkteam.de> 
 4  # 
 5  # Python X2Go is free software; you can redistribute it and/or modify 
 6  # it under the terms of the GNU Affero General Public License as published by 
 7  # the Free Software Foundation; either version 3 of the License, or 
 8  # (at your option) any later version. 
 9  # 
10  # Python X2Go is distributed in the hope that it will be useful, 
11  # but WITHOUT ANY WARRANTY; without even the implied warranty of 
12  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
13  # GNU Affero General Public License for more details. 
14  # 
15  # You should have received a copy of the GNU Affero General Public License 
16  # along with this program; if not, write to the 
17  # Free Software Foundation, Inc., 
18  # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. 
19   
20  """\ 
21  Python X2Go exceptions. 
22   
23  """ 
24  __NAME__ = 'x2goexceptions-pylib' 
25   
26  # modules 
27  import paramiko 
28  import exceptions 
29   
30  from defaults import X2GOCLIENT_OS as _X2GOCLIENT_OS 
31   
32  # Python X2Go Exceptions 
33  AuthenticationException = paramiko.AuthenticationException 
34  """inherited from Python Paramiko library""" 
35  PasswordRequiredException = paramiko.AuthenticationException 
36  """inherited from Python Paramiko library""" 
37  BadHostKeyException = paramiko.AuthenticationException 
38  """inherited from Python Paramiko library""" 
39  SSHException = paramiko.SSHException 
40  """inherited from Python Paramiko library""" 
41   
42 -class _X2goException(exceptions.BaseException): pass
43 -class X2goClientException(_X2goException): pass
44 -class X2goClientPrintingException(_X2goException): pass
45 -class X2goClientSettingsException(_X2goException): pass
46 -class X2goSessionException(_X2goException): pass
47 -class X2goControlSessionException(_X2goException): pass
48 -class X2goRemoteHomeException(_X2goException): pass
49 -class X2goHostKeyException(_X2goException): pass
50 -class X2goSSHProxyHostKeyException(_X2goException): pass
51 -class X2goTerminalSessionException(_X2goException): pass
52 -class X2goSessionCacheException(_X2goException): pass
53 -class X2goUserException(_X2goException): pass
54 -class X2goProfileException(_X2goException): pass
55 -class X2goSessionRegistryException(_X2goException): pass
56 -class X2goFwTunnelException(_X2goException): pass
57 -class X2goRevFwTunnelException(_X2goException): pass
58 -class X2goPrintException(_X2goException): pass
59 -class X2goPrintQueueException(_X2goException): pass
60 -class X2goPrintActionException(_X2goException): pass
61 -class X2goProxyException(_X2goException): pass
62 -class X2goMIMEboxActionException(_X2goException): pass
63 -class X2goMIMEboxQueueException(_X2goException): pass
64 -class X2goSSHProxyException(_X2goException): pass
65 -class X2goSSHProxyAuthenticationException(_X2goException): pass
66 -class X2goNotImplementedYetException(_X2goException): pass
67 -class X2goDesktopSharingException(_X2goException): pass
68 -class X2goTimeOutException(_X2goException): pass
69 if _X2GOCLIENT_OS != 'Windows': 70 # faking Windows errors on non-Windows systems...
71 - class WindowsError(_X2goException): pass
72