posted 22 years ago
Hi,
I was trying to throw an exception from an instance initializer block. I added this exception type to the throws clause of the ctor and added try,catch block where and instantiate this class. I am getting compilation error "Exception must be caught or thrown" and "Initializer does not end normally".
Can anyone explain how will I be able to throw an exception from an instance initializer.
Thanks in advance.
Usha