From b5de7a907a285fa48e36f410eba4766bf72f808f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 27 Jun 2021 15:43:32 +0200 Subject: [PATCH] Update link to 0xdead10cc documentation --- Documentation/SharingADatabase.md | 2 +- GRDB/Core/Configuration.swift | 2 +- GRDB/Core/Database.swift | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Documentation/SharingADatabase.md b/Documentation/SharingADatabase.md index 087dd7ec8..699046d4b 100644 --- a/Documentation/SharingADatabase.md +++ b/Documentation/SharingADatabase.md @@ -173,7 +173,7 @@ do { > The exception code 0xDEAD10CC indicates that an application has been terminated by the OS because it held on to a file lock or sqlite database lock during suspension. -See https://developer.apple.com/library/archive/technotes/tn2151/_index.html for more information about this exception. +See https://developer.apple.com/documentation/xcode/understanding-the-exception-types-in-a-crash-report for more information about this exception. 1. If you use SQLCipher, use SQLCipher 4+, and call the `cipher_plaintext_header_size` pragma from your database preparation function: diff --git a/GRDB/Core/Configuration.swift b/GRDB/Core/Configuration.swift index f0ae2fd82..1375a4943 100644 --- a/GRDB/Core/Configuration.swift +++ b/GRDB/Core/Configuration.swift @@ -91,7 +91,7 @@ public struct Configuration { /// When true, the `Database.suspendNotification` and /// `Database.resumeNotification` suspend and resume the database. Database /// suspension helps avoiding the [`0xdead10cc` - /// exception](https://developer.apple.com/library/archive/technotes/tn2151/_index.html). + /// exception](https://developer.apple.com/documentation/xcode/understanding-the-exception-types-in-a-crash-report). /// /// During suspension, all database accesses but reads in WAL mode may throw /// a DatabaseError of code `SQLITE_INTERRUPT`, or `SQLITE_ABORT`. You can diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index 4f1b619fc..0d53f97b6 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -752,7 +752,7 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib /// Suspends the database. A suspended database prevents database locks in /// order to avoid the [`0xdead10cc` - /// exception](https://developer.apple.com/library/archive/technotes/tn2151/_index.html). + /// exception](https://developer.apple.com/documentation/xcode/understanding-the-exception-types-in-a-crash-report). /// /// This method can be called from any thread. /// @@ -784,7 +784,7 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib /// Resumes the database. A resumed database stops preventing database locks /// in order to avoid the [`0xdead10cc` - /// exception](https://developer.apple.com/library/archive/technotes/tn2151/_index.html). + /// exception](https://developer.apple.com/documentation/xcode/understanding-the-exception-types-in-a-crash-report). /// /// This method can be called from any thread. /// @@ -816,7 +816,7 @@ public final class Database: CustomStringConvertible, CustomDebugStringConvertib /// Throws SQLITE_ABORT for suspended databases, if statement would lock /// the database, in order to avoid the [`0xdead10cc` - /// exception](https://developer.apple.com/library/archive/technotes/tn2151/_index.html). + /// exception](https://developer.apple.com/documentation/xcode/understanding-the-exception-types-in-a-crash-report). func checkForSuspensionViolation(from statement: Statement) throws { try $isSuspended.read { isSuspended in guard isSuspended else {