improve exception reporting in UIFrameFactory