Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SQL_ERROR_DELEGATE_UTIL_H_ |
| 6 | #define SQL_ERROR_DELEGATE_UTIL_H_ |
| 7 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 8 | #include "sql/sql_export.h" |
| 9 | |
| 10 | namespace sql { |
| 11 | |
| 12 | // Returns true if it is highly unlikely that the database can recover from |
| 13 | // |error|. |
| 14 | SQL_EXPORT bool IsErrorCatastrophic(int error); |
| 15 | |
Torne (Richard Coles) | 5821806 | 2012-11-14 11:43:16 +0000 | [diff] [blame] | 16 | } // namespace sql |
| 17 | |
| 18 | #endif // SQL_ERROR_DELEGATE_UTIL_H_ |