I want to create a custom exception to use in my code. Defining it like this
public class MyException extends Exception {}
provides only empty constructor, which is still usable. So I need to define all the constructors manually. Is there a list of constructors that I should override and should I do it like that?
MyException(/* args */) {
super(/* same args */);
}
Aucun commentaire:
Enregistrer un commentaire