build_message method generate error message by function and param in get_error_message