Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 14 in printed book and digital formats -- plus a one-year subscription so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

PDF:

Feature

Trapping for Errors

An introduction to REALbasic exceptions and traps

Issue: 8.6 (September/October 2010)
Author: JC Cruz
Article Description: No description available.
Article Length (in bytes): 30,512
Starting Page Number: 44
RBD Number: 8609
Resource File(s):

Download Icon 8609.zip Updated: Thursday, September 2, 2010 at 9:17 AM

Related Web Link(s):

anarakisware-at-gmail.com
http://www.rbdeveloper.com/browse/8.6/8609/
http://c2.com/doc/oopsla89/paper.html
http://www.methodsandtools.com/archive/archive.php?id=24
http://java.sun.com/developer/technicalArticles/Programming/exceptions/
http://java.sun.com/developer/technicalArticles/Programming/exceptions2/index.html
http://en.wikipedia.org/wiki/Setjmp.h
http://en.wikipedia.org/wiki/Exception_handling_syntax
http://en.wikipedia.org/wiki/Exception_handling

Known Limitations: None

Excerpt of article text...

Error handling is a must for any software product slated for public use. So in today's article, we will explore how to detect and deal with code errors in a REALbasic project. We will learn how to package an error as an exception, and how to trap it at run time. And we will study how our error traps interact with each other and with the main process thread.

So sit back, relax, and have your mug of warm brew within reach.

When Errors Occur

Face it. Errors abound in any software product bound for widespread public use. Plus, the more complex a given product, the more likely it is to have errors. Often, the label error-free means that testing has not found any errors severe enough to detract product quality.

Errors happen because humans plan and write software with tools and hardware built by other humans. Some errors cause crashes, which terminates a product session and endangers critical data. Some cause software freezes, blocking users from interacting with the product. And some cause data corruption -- unwanted changes to user data.

...End of Excerpt. Please purchase the magazine to read the full article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com