Seema_ram
20th June 2002, 14:16
Can anybody tell me how to handle the fatal error messages (which are displayed in the bw window e.g., reference does not exist, null pointer assignment etc.) from an application function server? Is there any api available for the same?

Thanks and Regards.

mark_h
20th June 2002, 16:17
I am not sure you can trap those after the fact. I always try to catch errors before they happen. For example if I read a file(that a user provides) that has item, unit, location, qty. The I check the item master make sure the item adn unit is valid, location table to make sure it is valid, and maybe even the qty in the location before calling the AFS code. This prevents me from having to catch errors once in the function server code.

I am not sure if this is helpful, but just my way of doing things. I hope someone posts a method of trapping these.

Good Luck!

Mark

afsfan
4th October 2002, 08:55
It is unfortunately not possible to catch errors that are shown in the BW message window. However, I've understood that in some time a fixed version will become available, where the function server script at least receives a "Process is gone" error message back (because the session giving the error has crashed). That's still not ideal, of course, but it might be enough.

No, I don't know a release date.