Using custom exceptions help
I am working on an assignment for my class and I seem to have hit a brick wall. For the assignment I was supposed to make a class that holds a String array of error messages (ex "Invalid entry"). So I made it with a total of 5 different error messages. Then I had to make a class called OrderException which I extended off Exception. All that does is run the superclasses constructor and a String which is received in the arguments(passed from the class holding the error message array). Now the problem I'm having is how do I pass the array subscript to the errormessage class and have that sent to the OrderException class. I am thoroughly confused and any help on this matter would be appreciated.