Exception with objects in an array
<p>I have a mini-project and a lot of classes. I created an exception for a field, it doesn't work</p>

<pre><code>public C(..., int yearX, ...) throws InitException {
        if (year == 2000) {
            ...
            year = yearX;
            ...
        } else
            throw new InitAnneeEC();
    }
</code></pre>
