@@ -17,73 +17,6 @@ def __str__(self) -> str:
1717 return "Hostname:{0}, Reason:{1}" .format (self .hostname , self .reason )
1818
1919
20- class BadHostKeyException (ChannelError ):
21- ''' SSH channel could not be created since server's host keys could not
22- be verified
23-
24- Contains:
25- reason(string)
26- e (paramiko exception object)
27- hostname (string)
28- '''
29-
30- def __init__ (self , e : Exception , hostname : str ) -> None :
31- super ().__init__ ("SSH channel could not be created since server's host keys could not be "
32- "verified" , e , hostname )
33-
34-
35- class BadScriptPath (ChannelError ):
36- ''' An error raised during execution of an app.
37- What this exception contains depends entirely on context
38- Contains:
39- reason(string)
40- e (paramiko exception object)
41- hostname (string)
42- '''
43-
44- def __init__ (self , e : Exception , hostname : str ) -> None :
45- super ().__init__ ("Inaccessible remote script dir. Specify script_dir" , e , hostname )
46-
47-
48- class BadPermsScriptPath (ChannelError ):
49- ''' User does not have permissions to access the script_dir on the remote site
50-
51- Contains:
52- reason(string)
53- e (paramiko exception object)
54- hostname (string)
55- '''
56-
57- def __init__ (self , e : Exception , hostname : str ) -> None :
58- super ().__init__ ("User does not have permissions to access the script_dir" , e , hostname )
59-
60-
61- class AuthException (ChannelError ):
62- ''' An error raised during execution of an app.
63- What this exception contains depends entirely on context
64- Contains:
65- reason(string)
66- e (paramiko exception object)
67- hostname (string)
68- '''
69-
70- def __init__ (self , e : Exception , hostname : str ) -> None :
71- super ().__init__ ("Authentication to remote server failed" , e , hostname )
72-
73-
74- class SSHException (ChannelError ):
75- ''' if there was any other error connecting or establishing an SSH session
76-
77- Contains:
78- reason(string)
79- e (paramiko exception object)
80- hostname (string)
81- '''
82-
83- def __init__ (self , e : Exception , hostname : str ) -> None :
84- super ().__init__ ("Error connecting or establishing an SSH session" , e , hostname )
85-
86-
8720class FileCopyException (ChannelError ):
8821 ''' File copy operation failed
8922
0 commit comments