Unfortunately, I have not received this message from Gregg and got it from the 
Todd's response.
  
  I am curious, what API we are talking about in here? Is this a SOA  forum or 
OO forum? I believe that "Creating more variations for the  client to deal with 
is" MUCH better thing in service-orientated  architecture than telling a 
client/consumer "that it is not proper to  make that request/call at that 
time."  Otherwise, we are loosing  the sense of SERVICE in general.
  
     <<Client is always right>> (though not all clients are right for 
particular provider...)

- Michael Poulin
  
    
  On Mar 14, 2007, at 11:03 AM, Gregg Wonderly wrote:
  
  > Todd Biske wrote:
  >> I tend to agree with the popular opinion, although I wouldn't use the
  >> terms system exception and application exception.  An exception,
  >> regardless of the adjective before it, should represent something
  >> abnormal (not necessarily unexpected though).  In your example, as
  >> you rightly point out, there are days off during the baseball
  >> season.  Therefore, a request for the score on a day when there is no
  >> game should not be considered abnormal.  Interestingly, however, a
  >> request for the score in January would be.
  >
  > I disagree.  For uniformity of API response, out of season and day  
  > off should be
  > the same return type.  Creating more variations for the client to  
  > deal with is
  > not always a good thing.  And, I would throw an exception to signal  
  > that it is
  > not proper to make that request/call at that time.  A score is a  
  > score!  If you
  > can't return a score that is meaningful, then throw an exception.   
  > Demanding
  > that the application treat a score of 0 or -1 special is silly.
  >
  > Gregg Wonderly
  >
  >
  > ------------------------ Yahoo! Groups Sponsor -------------------- 
  > ~-->
  > See what's inside the new Yahoo! Groups email.
  > http://us.click.yahoo.com/0It09A/bOaOAA/yQLSAA/NhFolB/TM
  > ---------------------------------------------------------- 
  > ~->
  >
  >
  > Yahoo! Groups Links
  >
  >
  > [EMAIL PROTECTED]
  >
  
  
      
                                    

 
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

Reply via email to