• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

8. Flash Remoting and .NET > 8.6. Error Handling in Flash Remoting with .NET

Error Handling in Flash Remoting with .NET

One of the true marks of a good programmer is how she handles errors in the code. Programmers coming from a Classic ASP background likely have very brief experience with good error handling. Flash taps directly into .NET’s robust error-handling mechanisms. This section discusses how to trap errors and expose them to your Flash application. We also discuss different error-handling techniques and how to use them with Flash. For related information, see Section 6.5.

Catch Me If You Can

The .NET languages support the try/catch construct for error handling. When an error occurs, code execution stops and the .NET Framework raises an exception. The following C# snippet includes code that may raise an exception, depending on the value of divisor:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint