public class MyNewException extends Exception {
private static final long serialVersionUID = -7994546786269588726L;
public MyNewException() {
super();
}
public MyNewException(String msg) {
super(msg);
}
}
How to declare a new exception in Java
Sample java code to declare a new exception.
0 comments:
Post a Comment