Hanlde exceptions thrown by constructors