Originally posted by Ernest Friedman-Hill:
I agree with Mark to a point; however, the constructor that accepts a String argument should pass that String to the super() call; the other one, the one that doesn't accept a parameter, is the one that should pass the custom message to the superclass constructor. It would be very annoying to the programmer using your exception if it had a constructor that accepted, but then ignored, a parameter.
I don't understand can you give me a example of what going on and how to import it into another file I still don't know how to do that.
Also is there more stuff you can add to it or is that all? like do you have to add stack traces or something like that or is it automatic like I just find that a bit too easy to write an exception.
[ April 22, 2006: Message edited by: Michael Hubele ]