I guess that AppenderLoggingException can be used for that purpose.
On Wed, Jan 13, 2016 at 10:53 PM, Ralph Goers
wrote:
> Your appender is automatically wrapped by an AppenderControl object. The
> AppenderControl will inspect the ignoreExceptions flag so your
ling logging the exception so you don’t even have to catch the
> exception to do that.
>
> Ralph
>
> > On Jan 13, 2016, at 7:49 PM, Nicholas Duane <nic...@msn.com> wrote:
> >
> > Also, why would we not just rethrow whatever exception we caught?
> >
> &
believe I've seen this happen before, if I'm attempting to
override a method which doesn't indicate it throws exceptions, won't the
compiler complain if I attempt to throw an exception from that method?
Thanks,
Nick
> Subject: Re: Appender's append() method
> From: ralph.go...@dslextre
ppen before, if I'm attempting to
> override a method which doesn't indicate it throws exceptions, won't the
> compiler complain if I attempt to throw an exception from that method?
>
> Thanks,
> Nick
>
>> Subject: Re: Appender's append() method
>> From: ralph.go..
> compiler complain if I attempt to throw an exception from that method?
>
> Thanks,
> Nick
>
> > Subject: Re: Appender's append() method
> > From: ralph.go...@dslextreme.com
> > Date: Wed, 13 Jan 2016 22:50:41 -0700
> > To: log4j-user@logging.apache.org
> >
&g
er exception we caught?
>
> Thanks,
> Nick
>
>> Subject: Re: Appender's append() method
>> From: ralph.go...@dslextreme.com
>> Date: Wed, 13 Jan 2016 17:28:11 -0700
>> To: log4j-user@logging.apache.org
>>
>> Sorry, that was what I meant.
>>
r problem which appears to be due
> to the fact that the append() method is not marked as throwing exceptions?
>
> Thanks,
> Nick
>
>> Date: Wed, 13 Jan 2016 14:17:47 -0800
>> Subject: Re: Appender's append() method
>> From: garydgreg...@gmail.com
>> To: log4j
IMO a RuntimeException subclass is appropriate while RuntimeException
should not be used.
Gary
On Wed, Jan 13, 2016 at 1:53 PM, Ralph Goers
wrote:
> Your appender is automatically wrapped by an AppenderControl object. The
> AppenderControl will inspect the
Sorry, that was what I meant.
Ralph
> On Jan 13, 2016, at 3:17 PM, Gary Gregory wrote:
>
> IMO a RuntimeException subclass is appropriate while RuntimeException
> should not be used.
>
> Gary
>
> On Wed, Jan 13, 2016 at 1:53 PM, Ralph Goers
Thanks for the info. What about the compiler problem which appears to be due
to the fact that the append() method is not marked as throwing exceptions?
Thanks,
Nick
> Date: Wed, 13 Jan 2016 14:17:47 -0800
> Subject: Re: Appender's append() method
> From: garydgreg...@gmail.com
> To
Also, why would we not just rethrow whatever exception we caught?
Thanks,
Nick
> Subject: Re: Appender's append() method
> From: ralph.go...@dslextreme.com
> Date: Wed, 13 Jan 2016 17:28:11 -0700
> To: log4j-user@logging.apache.org
>
> Sorry, that was what I meant.
>
>
11 matches
Mail list logo