Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 2 votes, 4.00 average. Display Modes
  #1 (permalink)  
Old 02-20-2003
Colin Adams Colin Adams is offline
Registered User
 
 
Join Date: Feb 2003
Location: Preston, Lancs. England
Posts: 6
Cool Bad exception example (Joke)

In the chapter on writing a Java client, you give the example:

interface Child {
void askToCleanUp() throws Tantrum;
}

This is bad programming practice, as an exception should not be used for expected normal behaviour.
Reply With Quote
  #2 (permalink)  
Old 02-20-2003
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,027
Cool

Perhaps we should change it to:

interface Child {
void askToCleanUp() throws DoesAsTold;
}



Regards, Matthew
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Have IceUtil::Exception inherit from std::exception? bpolivka Comments 2 12-13-2006 10:52 AM


All times are GMT -4. The time now is 12:40 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.