• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Package for mandatory exceptions class

 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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.
 
Roel De Nijs
Sheriff
Posts: 9790
101
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • 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: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roel

Ok...thanks again for the fast answer
 
Fernando Franzini
Ranch Hand
Posts: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At least can I create anothers packages inside suncertify.db.xxxx ? like remote...local...
 
Roberto Perillo
Bartender
Posts: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • 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: 2271
3
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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: 489
2
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Roberto
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic