hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23866] - Invalid cookie causing IllegalArgumentException
Date Fri, 17 Oct 2003 09:56:25 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23866>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23866

Invalid cookie causing IllegalArgumentException





------- Additional Comments From rolweber@de.ibm.com  2003-10-17 09:56 -------
Hello Oleg,

I don't want to start a religious debate about the use of checked and
unchecked exceptions. The policy I have adopted for years after reading
an article about the problem is:

- unchecked if the caller could have avoided the problem by using the
  class/method/object correctly, e.g. by passing valid arguments,
  performing necessary initializations, and so on
- unchecked if the problem is outside of the callers control, such
  as network connectivity, file system errors, and so on

Based on this policy, throwing a RuntimeException for bad parameters
is appropriate.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org


Mime
View raw message