title: Java interface extends questions
body: <p>I have to implement an RMI server which will be a front end for two other RMI services. So I decided a logical thing to do would be to have the interface for this implement the interfaces for the other two services. </p>
  
  <pre><code>public interface FrontEndServer extends Remote, BookServer, StudentServer
  {
      // Block empty so far
  }
  </code></pre>
  
  <p>However there is a method on the StudentServer</p>
  
  <pre><code>/**
   * Allows a student to borrow a book
   * 
   * @param studentID of the student who wishes to borrow a book
   * @param bookID of the book the student wishes to borrow
   * @throws RemoteException
   * @throws StudentNotFoundException when a student is not found in the system
   */
  void addBookToStudent(int studentID, int bookID) throws RemoteException, StudentNotFoundException;
  </code></pre>
  
  <p>I would like the <code>FrontEndServer</code> to also throw a <code>BookNotFoundException</code> as this service will also validate if the book actually exists before attempting to add the details in.</p>
  
  <p>Is this possible or is my design idea completely off and this is actually a bad design idea as if the other interfaces change and all? And will I be better of writing the method signatures for all the methods inside the <code>FrontEndServer</code>?</p>