• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Package for mandatory exceptions class

 
Ranch Hand
Posts: 497
2
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI for all jRanchers

My assignment say:

Any unimplemented exceptions in this interface must all be created as member classes of the suncertify.db package.......


It's doen't mean that I can't put this exceptions classes inside another inner package inside suncertify.db ? like suncertify.db.exception
Regards.
 
Sheriff
Posts: 11604
178
Hibernate jQuery Eclipse IDE Spring MySQL Database AngularJS Tomcat Server Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Fernando Franzini wrote:
It's doen't mean that I can't put this exceptions classes inside another inner package inside suncertify.db ? like suncertify.db.exception



If you put these exceptions in suncertify.db.exception, you will fail automatically. So don't do it If you run my test case to validate your submission jar 1 of the tests is a check to see if these exceptions are in the correct package, suncertify.db that is.

If you create another own exception (not mentioned in the provided interface), you can put that one in every package you want (but of course it would be normal to put that one in the suncertify.db package too).

Kind regards,
Roel
 
Fernando Franzini
Ranch Hand
Posts: 497
2
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Roel

Ok...thanks again for the fast answer
 
Fernando Franzini
Ranch Hand
Posts: 497
2
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
At least can I create anothers packages inside suncertify.db.xxxx ? like remote...local...
 
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Fernando Franzini wrote:At least can I create anothers packages inside suncertify.db.xxxx ?



Surely. As long as everything that must be in a particular place is in that particular place, it's fine.
 
Fernando Franzini
Ranch Hand
Posts: 497
2
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

particular place



I mean inside suncertify.db.xxxx like...
suncertify.db.local - > create class provide local acess
suncertify.db.remote -> create class provide remote acess

 
Roberto Perillo
Bartender
Posts: 2292
3
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, Fernando! You can certainly create other packages inside your suncertify.db package. But for instance, you still must create the Data class inside your suncertify.db package so you don't get automatically failed. So, as long as everything that must be in a particular place is in that particular place, it's fine.
 
Fernando Franzini
Ranch Hand
Posts: 497
2
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Roberto
 
reply
    Bookmark Topic Watch Topic
  • New Topic