throw exception in constructor