Use return value instead of exception.