Try this
catch(Exception::Error) { Info("Failed"); } Mit freundlichen Grüßen / Best regards / Med venlig hilsen Jesper Jørgensen / Abt. NMT-XD Senior Product Manager arvato systems | Technologies GmbH An der Autobahn 18 33311 Gütersloh [EMAIL PROTECTED] <blocked::blocked::blocked::mailto:[EMAIL PROTECTED]> Phone: +49 5242 / 40 80 54 Fax: +49 5242 / 40 80 40 Mobile: +49 172 / 571 03 34 http://www.as-T.biz <blocked::blocked::http://www.as-t.biz/> arvato systems | Technologies GmbH Joachim-Jungius-Str. 9, 18059 Rostock Geschäftsführung: Erwin Pietz, Matthias Moeller Amtsgericht Rostock - HRB 7497 ________________________________ "Der Inhalt dieser Nachricht oder eventueller Anlagen ist vertraulich und ausschließlich für den bezeichneten Adressaten bestimmt. Bitte stellen Sie sicher, dass die Information in dieser Nachricht ausschließlich an die adressierten Personen gelangt. Sollte diese Nachricht versehentlich an Sie gesendet worden sein, dann informieren Sie bitte umgehend den Absender und löschen Sie die Nachricht. Vielen Dank." "The information in this e-mail and any attachments is confidential. The information must only be held in areas that have controlled and limited access to the addressed persons. If this e-mail has been sent to you in error, please immediately notify the sender and delete the e-mail. Thanks." ________________________________ ________________________________ Von: development-axapta@yahoogroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von jazib.abdulah Gesendet: Mittwoch, 11. Juni 2008 10:39 An: development-axapta@yahoogroups.com Betreff: [development-axapta] Problem with try catch Hi everybody I am using the following code in my program. try { ret = runBuf(myJob); Info("Ok"); } catch { Info("Failed"); } The problem is when runBuf fails to compile. It's Error message still shows while the purpose of putting this inside try catch was, I wanted to display my own message. What could be wrong here???? Thanks everybody in advance. [Non-text portions of this message have been removed]