Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #32928
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Robert Klemme <shortcutter@googlemail.com> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Way to avoid repeating to catch the same exception in overridden method |
| Date | Fri, 23 Oct 2015 08:59:27 +0200 |
| Lines | 19 |
| Message-ID | <d8u46hF5m90U1@mid.individual.net> (permalink) |
| References | <fd943245-c84e-4b93-9ed5-e18fb25e256a@googlegroups.com> <n02mgp$g5i$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net C+JCkPZy3eXOVCoM5wQMRAV+VTFn4O6Fr0P7uuCSMuuVwBTaQ= |
| Cancel-Lock | sha1:RcNHLX92ldhzVOPMf/b2yme/YaA= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
| In-Reply-To | <n02mgp$g5i$1@dont-email.me> |
| Xref | csiph.com comp.lang.java.programmer:32928 |
Show key headers only | View raw
On 19.10.2015 18:11, Eric Sosman wrote: > My big question, though, is about the exception itself. Why > in the name of all that's holy does a no-argument method throw an > exception that complains about an illegal argument? Which one of > its non-existent arguments is it complaining about? And even if that exception was legitimate, since it's a RuntimeException, which typically indicates a programmer error, it is questionable to catch it here. Of course that can only be decided with more context but it is at least worthwhile to ponder. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Way to avoid repeating to catch the same exception in overridden method mike <mikaelpetterson@hotmail.com> - 2015-10-19 01:02 -0700
Re: Way to avoid repeating to catch the same exception in overridden method Eric Sosman <esosman@comcast-dot-net.invalid> - 2015-10-19 12:11 -0400
Re: Way to avoid repeating to catch the same exception in overridden method Robert Klemme <shortcutter@googlemail.com> - 2015-10-23 08:59 +0200
Re: Way to avoid repeating to catch the same exception in overridden method Martin Gregorie <martin@address-in-sig.invalid> - 2015-10-19 12:26 +0000
Re: Way to avoid repeating to catch the same exception in overridden method Silvio <silvio@internet.com> - 2015-10-23 11:00 +0200
Re: Way to avoid repeating to catch the same exception in overridden method Martin Gregorie <martin@address-in-sig.invalid> - 2015-10-23 10:32 +0000
csiph-web