Inheritance Help

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

34 Replies - 650 Views - Last Post: 25 June 2013 - 10:11 PM Rate Topic: -----

#31 jon.kiparsky  Icon User is online

  • Pancakes!
  • member icon


Reputation: 7298
  • View blog
  • Posts: 12,157
  • Joined: 19-March 11

Re: Inheritance Help

Posted 25 June 2013 - 09:30 PM

I agree entirely.

I imagine the new file IO stuff might be a little convenient, but there's nothing there that we don't already know how to do, and as far as I can tell not a lot is saved.
Was This Post Helpful? 1
  • +
  • -

#32 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8316
  • View blog
  • Posts: 31,836
  • Joined: 06-March 08

Re: Inheritance Help

Posted 25 June 2013 - 09:38 PM

Some may argue that if you want to catch offer multiple Exception in a single catch block as the code will be the same for whatver the Exception is... which make sense
So, in that case, use the old way of doing thing, catch all Exception and determine which one was fired in the catch block
Was This Post Helpful? 0
  • +
  • -

#33 jon.kiparsky  Icon User is online

  • Pancakes!
  • member icon


Reputation: 7298
  • View blog
  • Posts: 12,157
  • Joined: 19-March 11

Re: Inheritance Help

Posted 25 June 2013 - 09:40 PM

Exactly. Nothing is gained. I think it's better to handle each exception in some way, but if all you're doing is logging, just use good old Exception e, as we've been telling people not to do for years.
Was This Post Helpful? 0
  • +
  • -

#34 pbl  Icon User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8316
  • View blog
  • Posts: 31,836
  • Joined: 06-March 08

Re: Inheritance Help

Posted 25 June 2013 - 09:47 PM

Great minds think alike :)
Was This Post Helpful? 1
  • +
  • -

#35 jon.kiparsky  Icon User is online

  • Pancakes!
  • member icon


Reputation: 7298
  • View blog
  • Posts: 12,157
  • Joined: 19-March 11

Re: Inheritance Help

Posted 25 June 2013 - 10:11 PM

View Postpbl, on 25 June 2013 - 11:47 PM, said:

Great minds think alike :)/>



That's high praise. :)
Was This Post Helpful? 0
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3