Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #8408
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail |
|---|---|
| From | Jan Burse <janburse@fastmail.fm> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Thumbs up for suppressable exceptions in JDK 1.7 |
| Date | Fri, 30 Sep 2011 11:30:41 +0200 |
| Organization | albasani.net |
| Lines | 26 |
| Message-ID | <j64285$o1d$1@news.albasani.net> (permalink) |
| References | <j5ru3o$cu7$1@news.albasani.net> <cp5387dadnj2jmuheklm82niu718054nsj@4ax.com> <alpine.DEB.2.00.1109272034540.14737@urchin.earth.li> <j6252f$etv$1@dont-email.me> <XK2hq.1$eF7.0@newsfe20.iad> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.albasani.net 67DU7C2yvs6eB/0BqCAerRPJMJiEHn8cG75/sACEkM27ch5cPxwWPIJPBUGwFAowD/SRcUzBgTSMibMqgZvB1Usca/eol6Vq/ojHq8NK7w94Tu4E/ZuEQNkcys43fx21 |
| NNTP-Posting-Date | Fri, 30 Sep 2011 09:30:45 +0000 (UTC) |
| Injection-Info | news.albasani.net; logging-data="58zo2fCaftGaNGzLPbsJdVfZO/ub8hn/vrVvdDkpuZAEUtR2aklbM0XYxBqnroxQ9eWY1q6ER6A0Idx/V5H64sqjEgWv0Vdj/BEBOj0U4FxJI+1S0OGcYwGRKgb+Sg4m"; mail-complaints-to="abuse@albasani.net" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20110902 Firefox/6.0.2 SeaMonkey/2.3.3 |
| In-Reply-To | <XK2hq.1$eF7.0@newsfe20.iad> |
| Cancel-Lock | sha1:9iTxZKdxaHIfx8ukfGeadJ8Q7WQ= |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8408 |
Show key headers only | View raw
Daniel Pitts schrieb:
> I want to read up on it, but I wonder if it will help with this
> (unfortunate) situation:
>
> try {
> buggyCodeThrowsNullPointerException();
> } catch (Exception oopsThisWasIgnoredByLazyProgrammer) {
> throw new BusinessLayerSpecificException(
> "Unable to process request for no good reason.");
> }
I would eventually do the following:
try {
buggyCodeThrowsNullPointerException();
} catch (Exception oopsThisWasIgnoredByLazyProgrammer) {
throw new BusinessLayerSpecificException(
"Unable to process request for no good reason.",
oopsThisWasIgnoredByLazyProgrammer);
}
So use the cause of an exception for piggybacking
the reason. This is a kind of a competing mechanism
to supression.
Bye
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-09-27 09:31 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Roedy Green <see_website@mindprod.com.invalid> - 2011-09-27 02:28 -0700
Re: Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-09-27 11:38 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Tom Anderson <twic@urchin.earth.li> - 2011-09-27 20:43 +0100
Re: Thumbs up for suppressable exceptions in JDK 1.7 Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-09-29 18:05 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2011-09-29 11:25 -0700
Re: Thumbs up for suppressable exceptions in JDK 1.7 Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-09-29 23:57 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-09-30 11:30 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-09-29 18:57 -0300
Re: Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-02 13:38 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Jan Burse <janburse@fastmail.fm> - 2011-10-02 13:45 +0200
Re: Thumbs up for suppressable exceptions in JDK 1.7 Tom Anderson <twic@urchin.earth.li> - 2011-10-03 19:08 +0100
csiph-web