FTP – Error Handling (Magic xpi 4.13)
The Magic xpi Server Flow Manager checks for errors during the execution of a step. If there is an error in an FTP component step, the Error Handler is invoked and handles the error.
The first error in the step causes the termination of the step execution. If the step has multiple methods, and an error occurs in one of these methods, all subsequent methods are not executed.
While executing any method on the FTP server if there's a connection error (Socket Exception), then the Reconnection Policy (the Number of login retries and Delay between login retries parameters in the FTP Resource) is applied. If the reconnection is successful, then the process is continued. If the reconnection fails, then the process is terminated and an error message is shown in the Monitor.
The error codes for the FTP component are listed below. You can also use Magic xpi's General Component Errors with the FTP component. The codes are returned to the Magic xpi Server in the Invocation program’s Error Code parameter.
|
|
502
|
Java Exception
|
503
|
File Not Found
|
504
|
IO Error
|
505
|
Operation Failed
|
506
|
Parse Exception
|
507
|
Illegal arguments
|
508
|
FTP Error
|
Error Handling in Magic xpi