Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No Overload takes 5 arguments
Message
De
19/09/2013 09:28:49
 
 
À
19/09/2013 09:20:51
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
C# 4.0
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01583574
Message ID:
01583612
Vues:
37
thanks

>I haven't read this, but is has over 300 reviews and 3.9 stars. http://www.codeproject.com/Articles/9538/Exception-Handling-Best-Practices-in-NET
>
>>I broke the code down to a very simple case:
>>
>>
        public void SendEmails(Guid emailPK, string subject, string html, out int errorCode, out string errorMessage)
>>        {
>>            errorCode = 0;
>>            errorMessage = "";
>>        }
>>
>>and now my calling code compiles properly:
>>
>>
                int errorCode;
>>                string errorMessage;
>>                emailNotifications.SendEmails(emailPK, email.blk_subject, email.blk_html, out errorCode, out errorMessage);
>>
>>so it looks like the problem is somewhere in the code that I cut out of the SendEmails method.
>>
>>Do you have any recommended reading on how to handle the throwing of an error?
>>
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform