User define exception class creation and Usages of that class in designed program code example
Example: java define custom exception
public class CustomException extends Exception {
public CustomException(String errorMessage) {
super(errorMessage);
}
}