OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 String ExceptionMessages::failedToDelete(const char* property, | 71 String ExceptionMessages::failedToDelete(const char* property, |
72 const char* type, | 72 const char* type, |
73 const String& detail) { | 73 const String& detail) { |
74 return "Failed to delete the '" + String(property) + "' property from '" + | 74 return "Failed to delete the '" + String(property) + "' property from '" + |
75 String(type) + "': " + detail; | 75 String(type) + "': " + detail; |
76 } | 76 } |
77 | 77 |
78 String ExceptionMessages::failedToGetIndexed(const char* type, | 78 String ExceptionMessages::failedToGetIndexed(const char* type, |
79 const String& detail) { | 79 const String& detail) { |
80 return "Failed to read an indexed property from '" + String(type) + "': " + | 80 return "Failed to read an indexed property from '" + String(type) + |
81 detail; | 81 "': " + detail; |
82 } | 82 } |
83 | 83 |
84 String ExceptionMessages::failedToSetIndexed(const char* type, | 84 String ExceptionMessages::failedToSetIndexed(const char* type, |
85 const String& detail) { | 85 const String& detail) { |
86 return "Failed to set an indexed property on '" + String(type) + "': " + | 86 return "Failed to set an indexed property on '" + String(type) + |
87 detail; | 87 "': " + detail; |
88 } | 88 } |
89 | 89 |
90 String ExceptionMessages::failedToDeleteIndexed(const char* type, | 90 String ExceptionMessages::failedToDeleteIndexed(const char* type, |
91 const String& detail) { | 91 const String& detail) { |
92 return "Failed to delete an indexed property from '" + String(type) + "': " + | 92 return "Failed to delete an indexed property from '" + String(type) + |
93 detail; | 93 "': " + detail; |
94 } | 94 } |
95 | 95 |
96 String ExceptionMessages::constructorNotCallableAsFunction(const char* type) { | 96 String ExceptionMessages::constructorNotCallableAsFunction(const char* type) { |
97 return failedToConstruct(type, | 97 return failedToConstruct(type, |
98 "Please use the 'new' operator, this DOM object " | 98 "Please use the 'new' operator, this DOM object " |
99 "constructor cannot be called as a function."); | 99 "constructor cannot be called as a function."); |
100 } | 100 } |
101 | 101 |
102 String ExceptionMessages::incorrectPropertyType(const String& property, | 102 String ExceptionMessages::incorrectPropertyType(const String& property, |
103 const String& detail) { | 103 const String& detail) { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 CORE_EXPORT String ExceptionMessages::formatNumber<float>(float number) { | 182 CORE_EXPORT String ExceptionMessages::formatNumber<float>(float number) { |
183 return formatPotentiallyNonFiniteNumber(number); | 183 return formatPotentiallyNonFiniteNumber(number); |
184 } | 184 } |
185 | 185 |
186 template <> | 186 template <> |
187 CORE_EXPORT String ExceptionMessages::formatNumber<double>(double number) { | 187 CORE_EXPORT String ExceptionMessages::formatNumber<double>(double number) { |
188 return formatPotentiallyNonFiniteNumber(number); | 188 return formatPotentiallyNonFiniteNumber(number); |
189 } | 189 } |
190 | 190 |
191 } // namespace blink | 191 } // namespace blink |
OLD | NEW |