[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: The subsetting has begun
>>>>> "AS" == Alaric Snell <alaric@a...> writes: AS> Well there's no fixed dividing line between exception AS> conditions and common program flow. You could say that AS> exceptions are only for truly exceptional conditions such as AS> stack overflow and hardware failure, and everything else AS> should be handled by error returns... but I think few would AS> necessarily agree. As I haven't seen it mentioned yet: in Eiffel an exception occurs only when the contract is violated. I've found this a very helpful: if a routine cannot fullfil its contract, an exception is thrown. To me it looks like that when an entity cannot be expanded (smiley attack), an exception is warranted, if the contract is that the routine *will* expand. If the contract is: I try to expand, but check is_expansion_successful, then an exception is not warranted. -- Regards, Berend. (-:
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|