Welcome to APLNext Sign in | Join | Help
in
Community Website
Blogs Forums

Error trapping

Last post 09-19-2007, 1:37 PM by Ajay.Askoolum. 0 replies.
Sort Posts: Previous
  • Error trapping

     09-19-2007, 1:37 PM

    If I call Directory.CreateDirectory inside a try/catch construction in VA, I get the following error when the argument is not a valid path name i.e contains illegal characters:

    'System.String' object has no attribute '_Call'

    If I do the same in C# I get the following error:

    "The given path's format is not supported."

    I am intrigued because:

    1. I would expect VA to pass through rather than handle C# code and therefore would expect the same (meaningful) error.

    2. The VA error is coming from APLNEXT.APL; I know because the Exception.ToString() has this information. It looks like VA has its own error handling and it aborts and does not return to the calling code.

    If the path does not duplicate the escape character \ and is not specified as a verbatim string, Cielo Explorer responds with ... and it seems that the only way to get back control is to close the project; <Enter> just echoes the same prompt. Yes, I can move the mouse to the menu and other parts of the project. What does ... mean and is there a way out of it?

     

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems