Exceptions
The FTP microservice defines several custom exceptions. These exceptions provide microservice-specific details.
FtpException
Base class for all FTP-related exceptions.
FtpNackException
Base class for all FTP NAK exceptions.
Property | Type | Description |
|---|---|---|
|
| Gets the FTP opcode (action) that caused the NAK response. |
|
| Gets the NAK error code reported by the FTP server. |
|
| Gets the file-system-specific error code when NackError is FailErrno otherwise, null. |
Constructor | Description |
|---|---|
| Initializes a new instance of the FtpNackException class with a protocol-level NAK error code. |
| Initializes a new instance of the FtpNackException class for FailErrno and captures the server-provided file-system error code. |
FtpNackException(FtpOpcode action, NackError nackError)
Parameter | Type | Description |
|---|---|---|
|
| The FTP opcode (action) that failed. |
|
| The NAK error code returned by the server. |
FtpNackException(FtpOpcode action, byte fsErrorCode)
Parameter | Type | Description |
|---|---|---|
|
| The FTP opcode (action) that failed. |
|
| The file-system-specific error code returned by the server. |
FtpNackEndOfFileException
This is a special exception is used to indicate end-of-file (EOF). Thrown when an operation reaches the end of a file.