File tree 1 file changed +32
-0
lines changed
1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,38 @@ export class FileSystem {
41
41
getUniqueName ( fileName : string ) : string ;
42
42
}
43
43
44
+ export class GeneralError extends Error {
45
+ /**
46
+ * @param message The error message.
47
+ * @param code Default value is `400`.
48
+ */
49
+ constructor ( message : string , code ?: number ) ;
50
+ }
51
+
52
+ export class SocketError extends Error {
53
+ /**
54
+ * @param message The error message.
55
+ * @param code Default value is `500`.
56
+ */
57
+ constructor ( message : string , code ?: number ) ;
58
+ }
59
+
60
+ export class FileSystemError extends Error {
61
+ /**
62
+ * @param message The error message.
63
+ * @param code Default value is `400`.
64
+ */
65
+ constructor ( message : string , code ?: number ) ;
66
+ }
67
+
68
+ export class ConnectorError extends Error {
69
+ /**
70
+ * @param message The error message.
71
+ * @param code Default value is `400`.
72
+ */
73
+ constructor ( message : string , code ?: number ) ;
74
+ }
75
+
44
76
export class FtpConnection extends EventEmitter {
45
77
server : FtpServer ;
46
78
id : string ;
You can’t perform that action at this time.
0 commit comments