Two public methods for getting these data from the error code is added. The error in get_unprepared_data is corrected.