43444546474849
public void throwIfNecessary() throws CloseFailedException { if (!errors.hasErrors()) { return; } throw new CloseFailedException(errors.getMessages()); }