Errors Module#

The errors module defines custom exceptions used by the FTP server.

Custom exception classes for the thinFTP server.

These exceptions are used to signal specific error conditions during FTP command handling and file operations.

exception thinftp.errors.ClientQuit[source]#

Bases: Exception

Exception raised to indicate that the client has requested to quit.

This is used internally to break the connection handling loop after receiving the FTP QUIT command.

exception thinftp.errors.FileHandlerError(msg)[source]#

Bases: Exception

Exception raised for errors occurring in file operations.

message#

Description of the file handling error.

Type:

str

__init__(msg)[source]#

Initialize the FileHandlerError.

Parameters:

msg (str) – The error message describing what went wrong.