If your code is inside a transaction the error will skip your try/catch, and 
find the first catch block outside of the transaction. (Because axapta rolls 
back a transaction first when it hits an error, and then continues on from 
there)

--- On Wed, 6/11/08, jazib.abdulah <[EMAIL PROTECTED]> wrote:

From: jazib.abdulah <[EMAIL PROTECTED]>
Subject: [development-axapta] Problem with try catch
To: [email protected]
Date: Wednesday, June 11, 2008, 1:39 AM






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]

Reply via email to