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 20 matching lines...) Expand all Loading... |
31 #include "config.h" | 31 #include "config.h" |
32 #include "bindings/v8/ExceptionMessages.h" | 32 #include "bindings/v8/ExceptionMessages.h" |
33 | 33 |
34 namespace WebCore { | 34 namespace WebCore { |
35 | 35 |
36 String ExceptionMessages::failedToExecute(const String& method, const String& ty
pe, const String& detail) | 36 String ExceptionMessages::failedToExecute(const String& method, const String& ty
pe, const String& detail) |
37 { | 37 { |
38 return "Failed to execute '" + method + "' on '" + type + "': " + detail; | 38 return "Failed to execute '" + method + "' on '" + type + "': " + detail; |
39 } | 39 } |
40 | 40 |
| 41 String ExceptionMessages::failedToGet(const String& property, const String& type
, const String& detail) |
| 42 { |
| 43 return "Failed to read the '" + property + "' property from '" + type + "':
" + detail; |
| 44 } |
| 45 |
| 46 String ExceptionMessages::failedToSet(const String& property, const String& type
, const String& detail) |
| 47 { |
| 48 return "Failed to set the '" + property + "' property on '" + type + "': " +
detail; |
| 49 } |
| 50 |
41 } // namespace WebCore | 51 } // namespace WebCore |
OLD | NEW |