Package x2go :: Module x2go_exceptions

[frames] | no frames]

# Source Code for Module x2go.x2go_exceptions

      1  # -*- coding: utf-8 -*-
      2
      3  # Copyright (C) 2010-2013 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.PasswordRequiredException
     36  """inherited from Python Paramiko library"""
     37  BadHostKeyException = paramiko.BadHostKeyException
     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
     73  # compat section
     74 -class X2goClientException(_X2GoException): pass
     75 -class X2goClientPrintingException(_X2GoException): pass
     76 -class X2goClientSettingsException(_X2GoException): pass
     77 -class X2goSessionException(_X2GoException): pass
     78 -class X2goControlSessionException(_X2GoException): pass
     79 -class X2goRemoteHomeException(_X2GoException): pass
     80 -class X2goHostKeyException(_X2GoException): pass
     81 -class X2goSSHProxyHostKeyException(_X2GoException): pass
     82 -class X2goTerminalSessionException(_X2GoException): pass
     83 -class X2goSessionCacheException(_X2GoException): pass
     84 -class X2goUserException(_X2GoException): pass
     85 -class X2goProfileException(_X2GoException): pass
     86 -class X2goSessionRegistryException(_X2GoException): pass
     87 -class X2goFwTunnelException(_X2GoException): pass
     88 -class X2goRevFwTunnelException(_X2GoException): pass
     89 -class X2goPrintException(_X2GoException): pass
     90 -class X2goPrintQueueException(_X2GoException): pass
     91 -class X2goPrintActionException(_X2GoException): pass
     92 -class X2goProxyException(_X2GoException): pass
     93 -class X2goMIMEboxActionException(_X2GoException): pass
     94 -class X2goMIMEboxQueueException(_X2GoException): pass
     95 -class X2goSSHProxyException(_X2GoException): pass
     96 -class X2goSSHProxyAuthenticationException(_X2GoException): pass
     97 -class X2goNotImplementedYetException(_X2GoException): pass
     98 -class X2goDesktopSharingException(_X2GoException): pass
     99 -class X2goTimeOutException(_X2GoException): pass
    100