Почему не проходит, написал 9 различных исключений, но не проходит валидацию
package com.javarush.task.task14.task1419;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.List;
/*
Нашествие исключений
*/
public class Solution {
public static List<Exception> exceptions = new ArrayList<Exception>();
public static void main(String[] args) {
initExceptions();
for (Exception exception : exceptions) {
System.out.println(exception);
}
}
private static void initExceptions() { //the first exception
try {
float i = 1 / 0;
} catch (Exception e) {
exceptions.add(e);
}
//напишите тут ваш код
try {
int[] mass = new int[6];
mass[7] = 10;
} catch (ArrayIndexOutOfBoundsException i) {
exceptions.add(i);
}
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String s = null;
try {
s = in.readLine();
}catch (IOException g){
exceptions.add(g);
}
try {
int [] a = new int[-1];
}catch (NegativeArraySizeException r){
exceptions.add(r);
}
try {
ArrayList<String> list = new ArrayList<>();
list.get(-1);
}catch (IndexOutOfBoundsException h){
exceptions.add(h);
}
try {
Object x = new Integer(10);
String s2 = (String)x;
}catch (ClassCastException j){
exceptions.add(j);
}
try {
int[] array = new int[5];
array = null;
int i = array[2];
}catch (NullPointerException f){
exceptions.add(f);
}
try {
String s1 = "FOOBAR";
int i = Integer.parseInt(s);
}catch (NumberFormatException q){
exceptions.add(q);
}
try {
Object[] str = new String[10];
str[0] = new Character('%');
}catch(ArrayStoreException b) {
exceptions.add(b);
}
try {
throw new IllegalStateException("MyException");
} catch (IllegalStateException m) {
exceptions.add(m);
}
}
}