This $result won't be set if the called object throws a RestException.