Make RowDecodingError public

This commit is contained in:
Gwendal Roué committed 2025-07-20 13:00:12 +02:00
1 parent ad704c58e5
commit 2b1b56ea47
1 file changed
+3 -5
+3 -5
View File
@@ -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] = []