| Index: Source/bindings/v8/ExceptionMessages.cpp
|
| diff --git a/Source/bindings/v8/ExceptionMessages.cpp b/Source/bindings/v8/ExceptionMessages.cpp
|
| index 0309f1dd5b723e7b4d9f15c515bf08b5e9ad0e23..f8d6a55e0d623c178c644077b30c94c19f050eb3 100644
|
| --- a/Source/bindings/v8/ExceptionMessages.cpp
|
| +++ b/Source/bindings/v8/ExceptionMessages.cpp
|
| @@ -33,6 +33,11 @@
|
|
|
| namespace WebCore {
|
|
|
| +String ExceptionMessages::failedToConstruct(const String& type, const String& detail)
|
| +{
|
| + return "Failed to construct '" + type + (!detail.isEmpty() ? String("': " + detail) : String("'"));
|
| +}
|
| +
|
| String ExceptionMessages::failedToExecute(const String& method, const String& type, const String& detail)
|
| {
|
| return "Failed to execute '" + method + "' on '" + type + (!detail.isEmpty() ? String("': " + detail) : String("'"));
|
| @@ -48,4 +53,9 @@ String ExceptionMessages::failedToSet(const String& property, const String& type
|
| return "Failed to set the '" + property + "' property on '" + type + "': " + detail;
|
| }
|
|
|
| +String ExceptionMessages::notEnoughArguments(unsigned expected, unsigned provided)
|
| +{
|
| + return String::number(expected) + " argument" + (expected > 1 ? "s" : "") + " required, but only " + String::number(provided) + " present.";
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|