OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 static int ErrorCodeToExceptionCode(int errorCode) | 65 static int ErrorCodeToExceptionCode(int errorCode) |
66 { | 66 { |
67 if (!errorCode) | 67 if (!errorCode) |
68 return 0; | 68 return 0; |
69 return errorCode + IDBDatabaseExceptionOffset; | 69 return errorCode + IDBDatabaseExceptionOffset; |
70 } | 70 } |
71 | 71 |
72 static bool initializeDescription(ExceptionCode, ExceptionCodeDescription*); | 72 static bool initializeDescription(ExceptionCode, ExceptionCodeDescription*); |
73 static String getErrorName(ExceptionCode); | 73 static String getErrorName(ExceptionCode); |
74 static String getErrorDescription(ExceptionCode); | 74 static String getErrorDescription(ExceptionCode); |
75 static ExceptionCode getLegacyErrorCode(ExceptionCode); | 75 static int getLegacyErrorCode(ExceptionCode); |
76 | 76 |
77 private: | 77 private: |
78 IDBDatabaseException(const ExceptionCodeDescription& description) | 78 IDBDatabaseException(const ExceptionCodeDescription& description) |
79 : ExceptionBase(description) | 79 : ExceptionBase(description) |
80 { | 80 { |
81 } | 81 } |
82 }; | 82 }; |
83 | 83 |
84 } // namespace WebCore | 84 } // namespace WebCore |
85 | 85 |
86 #endif // IDBDatabaseException_h | 86 #endif // IDBDatabaseException_h |
OLD | NEW |