PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Reason
  • Tip
  • Examples
  • An exception process is used to manage an error that occurred in the first exception process
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Error 30: An exception process cannot be declared inside another exception process...
Reason
The current process uses an exception process. A new management of exceptions is implemented in this exception process. The exceptions cannot be managed in an exception process.
Tip
The code for exception process must be checked with great care. Indeed, if this code contains an error, this error will not be intercepted by an exception process.
Examples

An exception process is used to manage an error that occurred in the first exception process

Code triggering the error
IF InTestMode() = False THEN
WHEN EXCEPTION
Error("Error:" + ExceptionInfo(errMessage) + " Code " + ExceptionInfo(errCode) + ...
 " at line " + ExceptionInfo(errLine) + " of "  + ...
  ExceptionInfo(errProcess) , "EXC")
WHEN EXCEPTION
// If we cannot write into .ini, exit from the program
EndProgram()
END
// Procedure used to write into an INI file
bWriteIntoIni("")
END
END
Possible correction
Delete the extra exception process and check the exception process.
IF InTestMode() = False THEN
        WHEN EXCEPTION
        Error("Error:" + ExceptionInfo(errMessage) + " Code " + ExceptionInfo(errCode) + ...
                         " at line " + ExceptionInfo(errLine) + " of "  + ...
                          ExceptionInfo(errProcess) , "EXC")
                // Procedure used to write into an INI file
                bWriteIntoIni("")
        END
END
Minimum required version
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment