1 Replies - 386 Views - Last Post: 28 April 2013 - 09:11 PM Rate Topic: -----

#1 newbie10  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 11
  • Joined: 09-October 10

exception of type DBAccessError

Posted 28 April 2013 - 01:15 PM

A base class method throws an exception of type DBAccessError. I want to
override that method in my derived class, but want to throw NetworkAccessError
in addition to DBAccessError.
Is this a good idea? :/
Is This A Good Question/Topic? 0
  • +

Replies To: exception of type DBAccessError

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3576
  • View blog
  • Posts: 10,441
  • Joined: 08-June 10

Re: exception of type DBAccessError

Posted 28 April 2013 - 09:11 PM

View Postnewbie10, on 28 April 2013 - 10:15 PM, said:

but want to throw NetworkAccessError in addition to DBAccessError.
Is this a good idea? ://>

if these are exception type errors, I doubt you can throw more than one.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1