logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: throw new RuntimeException(e);
Date Fri, 02 Sep 2016 00:44:11 GMT
It is better than before because there one less "caused by" level.

Gary

On Sep 1, 2016 8:28 PM, "Remko Popma" <remko.popma@gmail.com> wrote:

> Does that preserve the original stacktrace?
>
> Sent from my iPhone
>
> On 2016/09/02, at 6:06, Gary Gregory <garydgregory@gmail.com> wrote:
>
> On Wed, Aug 31, 2016 at 7:22 PM, Matt Sicker <boards@gmail.com> wrote:
>
>> If it's just to rethrow a checked exception, it should use
>> Throwables.rethrow(Throwable t). No exception wrapping is done in that
>> method anymore thanks to an abuse of generics I found a couple months ago,
>> so the stacktrace looks better.
>>
>
> Done in Git master.
>
> Gary
>
>
>>
>> On 31 August 2016 at 11:29, Gary Gregory <garydgregory@gmail.com> wrote:
>>
>>> We've got a few of these... not good. Surely there is a better exception
>>> checked or not we can use.
>>>
>>> Gary
>>>
>>> --
>>> E-Mail: garydgregory@gmail.com | ggregory@apache.org
>>> Java Persistence with Hibernate, Second Edition
>>> <http://www.manning.com/bauer3/>
>>> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
>>> Spring Batch in Action <http://www.manning.com/templier/>
>>> Blog: http://garygregory.wordpress.com
>>> Home: http://garygregory.com/
>>> Tweet! http://twitter.com/GaryGregory
>>>
>>
>>
>>
>> --
>> Matt Sicker <boards@gmail.com>
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>

Mime
View raw message