From 2b1b56ea47c3e89fe1eb844d9fc7c2b16b6a39c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 20 Jul 2025 10:10:50 +0200 Subject: [PATCH] Make RowDecodingError public --- GRDB/Core/RowDecodingError.swift | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/GRDB/Core/RowDecodingError.swift b/GRDB/Core/RowDecodingError.swift index af6defaa7..859714c7d 100644 --- a/GRDB/Core/RowDecodingError.swift +++ b/GRDB/Core/RowDecodingError.swift @@ -23,9 +23,8 @@ enum RowKey: Hashable, Sendable { case prefetchKey(String) } -/// A decoding error -@usableFromInline -struct RowDecodingError: Error { +/// A decoding error thrown when decoding a database row. +public struct RowDecodingError: Error { enum Impl { case keyNotFound(RowKey, Context) case valueMismatch(Any.Type, Context) @@ -177,8 +176,7 @@ struct RowDecodingContext { } extension RowDecodingError: CustomStringConvertible { - @usableFromInline - var description: String { + public var description: String { let context = self.context let row = context.row var chunks: [String] = []