Use exception in loadForm