There is an assertion: “I’m asserting that this constructor will never be called”. So, indeed, AssertionError is correct here.
There is an assertion: “I’m asserting that this constructor will never be called”. So, indeed, AssertionError is correct here.