uploader module: Use api.Error instead of Exception

 * This is to let the callers know the Exception came
   from this library.