package exceptions;

public class MyException extends RuntimeException {
    
    public MyException(String msg) {
        super(msg);
    }

    public static void main(String[] args) throws MyException {
        System.out.println("Hello World! Now lets throw MyException...");
        throw new MyException(
                "This is where an additional message can be added");
    }
}
