diff --git a/ftp-srv.d.ts b/ftp-srv.d.ts index b14b113..4b3231f 100644 --- a/ftp-srv.d.ts +++ b/ftp-srv.d.ts @@ -41,6 +41,38 @@ export class FileSystem { getUniqueName(fileName: string): string; } +export class GeneralError extends Error { + /** + * @param message The error message. + * @param code Default value is `400`. + */ + constructor(message: string, code?: number); +} + +export class SocketError extends Error { + /** + * @param message The error message. + * @param code Default value is `500`. + */ + constructor(message: string, code?: number); +} + +export class FileSystemError extends Error { + /** + * @param message The error message. + * @param code Default value is `400`. + */ + constructor(message: string, code?: number); +} + +export class ConnectorError extends Error { + /** + * @param message The error message. + * @param code Default value is `400`. + */ + constructor(message: string, code?: number); +} + export class FtpConnection extends EventEmitter { server: FtpServer; id: string;