Hi,
Thanks for the replies. I understand the exception handling at the front and displaying message to user and that's ok. What would be the situation with the following, for example, In my update method of the Data.java class, I check the elements of the passed array. If any of the elements are greater than the size they should be, I throw an IllegalArgumentException. I am currently doing the network
testing. So if I try to book a room with an array concerning the problem I have stated, I currently get an illegalArgumentException and therefore one cannot perform this booking.
Firstly, I persume we must respect the interface, so mine just has 2 exceptions thrown, "RecordNotFoundException" and "SecurityException" for update, is it ok to throw this illegalArgumentException all the way through the network to the person who is accessing the network functionality? I am persuming the 3 tiers, client, network and server have to be tested individually.
Secondly, what would I do with the exception if it is? Clearly, the person has not made the booking here.