From: Robert Klemme Date: 2012-11-16T21:27:51+09:00 Subject: Re: Question on exceptions On Fri, Nov 16, 2012 at 9:27 AM, tamouse mailing lists wrote: > Is this a good way to use exceptions? Having an insufficent balance > might be something the user finds exceptional, but I'd think it would > be a standard sort of handling for a bank applicaion... Depends on how you implement it: if you have the option to query the current balance and define that a withraw operation is only allowed with sufficient funds then you throw an exception. If OTOH you define that withdraw will return success then you have a boolean return value. Both approaches are legal and feasible. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/