Re: Appender's append() method

2016-01-14 Thread Mikael Ståldal
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

Re: Appender's append() method

2016-01-14 Thread Mikael Ståldal
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? > > > &

RE: Appender's append() method

2016-01-14 Thread Nicholas Duane
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

Re: Appender's append() method

2016-01-14 Thread Ralph Goers
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..

Re: Appender's append() method

2016-01-14 Thread Matt Sicker
> 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

Re: Appender's append() method

2016-01-13 Thread Ralph Goers
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. >>

Re: Appender's append() method

2016-01-13 Thread Ralph Goers
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

Re: Appender's append() method

2016-01-13 Thread Gary Gregory
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

Re: Appender's append() method

2016-01-13 Thread Ralph Goers
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

RE: Appender's append() method

2016-01-13 Thread Nicholas Duane
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

RE: Appender's append() method

2016-01-13 Thread Nicholas Duane
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. > >