Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: extensions/renderer/api_invocation_errors.h

Issue 2847853002: [Extensions Bindings] Add errors to signature parsing (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/renderer/api_invocation_errors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/api_invocation_errors.h
diff --git a/extensions/renderer/api_invocation_errors.h b/extensions/renderer/api_invocation_errors.h
index 4458b6dcc315beb2695ffdbce527548fcda62002..b52340615d65ea2fc86646c558d39aa2d4ab8c51 100644
--- a/extensions/renderer/api_invocation_errors.h
+++ b/extensions/renderer/api_invocation_errors.h
@@ -43,6 +43,8 @@ std::string NotAnInstance(const char* instance_type);
std::string InvalidChoice();
std::string UnserializableValue();
std::string ScriptThrewError();
+std::string TooManyArguments();
+std::string MissingRequiredArgument(const char* argument_name);
// Returns an message indicating an error was found while parsing a given index
// in an array.
@@ -52,6 +54,11 @@ std::string IndexError(uint32_t index, const std::string& error);
// property on an object.
std::string PropertyError(const char* property_name, const std::string& error);
+// Returns a message indicating that an error was found while parsing a given
+// parameter in an API signature.
+std::string ArgumentError(const std::string& parameter_name,
+ const std::string& error);
+
} // namespace api_errors
} // namespace extensions
« no previous file with comments | « no previous file | extensions/renderer/api_invocation_errors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698