I have no clue what to do now. I tried throwing an exception right after the extends code and that ended in an error. I also tried to throw the error in the body of the method and had errors. Please help. Thank you for your assistance.
package com.codegym.task.task09.task0918;
/*
We're all friends here, even the exceptions
*/
public class Solution {
public static void main(String[] args) {
}
class MyException extends Exception() throws IOException
{
}
class MyException2 extends MyException{
throws new IndexOutOfBoundsException();
}
class MyException3 extends MyException2 {
}
class MyException4 extends MyException3 {
}
}