@@ -25,7 +25,7 @@ extension Message {
2525 /// - Parameters:
2626 /// - collection: The list of messages to encode.
2727 /// - options: The JSONEncodingOptions to use.
28- /// - Throws: ``SwiftProtobufError `` if encoding fails.
28+ /// - Throws: ``JSONEncodingError `` if encoding fails.
2929 public static func jsonString< C: Collection > (
3030 from collection: C ,
3131 options: JSONEncodingOptions = JSONEncodingOptions ( )
@@ -43,7 +43,7 @@ extension Message {
4343 /// - Parameters:
4444 /// - collection: The list of messages to encode.
4545 /// - options: The JSONEncodingOptions to use.
46- /// - Throws: ``SwiftProtobufError `` if encoding fails.
46+ /// - Throws: ``JSONEncodingError `` if encoding fails.
4747 public static func jsonUTF8Bytes< C: Collection , Bytes: SwiftProtobufContiguousBytes > (
4848 from collection: C ,
4949 options: JSONEncodingOptions = JSONEncodingOptions ( )
@@ -64,7 +64,7 @@ extension Message {
6464 ///
6565 /// - Parameter jsonString: The JSON-formatted string to decode.
6666 /// - Parameter options: The JSONDecodingOptions to use.
67- /// - Throws: ``SwiftProtobufError `` if decoding fails.
67+ /// - Throws: ``JSONDecodingError `` if decoding fails.
6868 public static func array(
6969 fromJSONString jsonString: String ,
7070 options: JSONDecodingOptions = JSONDecodingOptions ( )
@@ -80,7 +80,7 @@ extension Message {
8080 /// - Parameter jsonString: The JSON-formatted string to decode.
8181 /// - Parameter extensions: The extension map to use with this decode
8282 /// - Parameter options: The JSONDecodingOptions to use.
83- /// - Throws: ``SwiftProtobufError `` if decoding fails.
83+ /// - Throws: ``JSONDecodingError `` if decoding fails.
8484 public static func array(
8585 fromJSONString jsonString: String ,
8686 extensions: any ExtensionMap = SimpleExtensionMap ( ) ,
@@ -103,7 +103,7 @@ extension Message {
103103 /// - Parameter jsonUTF8Bytes: The JSON-formatted data to decode, represented
104104 /// as UTF-8 encoded text.
105105 /// - Parameter options: The JSONDecodingOptions to use.
106- /// - Throws: ``SwiftProtobufError `` if decoding fails.
106+ /// - Throws: ``JSONDecodingError `` if decoding fails.
107107 public static func array< Bytes: SwiftProtobufContiguousBytes > (
108108 fromJSONUTF8Bytes jsonUTF8Bytes: Bytes ,
109109 options: JSONDecodingOptions = JSONDecodingOptions ( )
@@ -121,7 +121,7 @@ extension Message {
121121 /// as UTF-8 encoded text.
122122 /// - Parameter extensions: The extension map to use with this decode
123123 /// - Parameter options: The JSONDecodingOptions to use.
124- /// - Throws: ``SwiftProtobufError `` if decoding fails.
124+ /// - Throws: ``JSONDecodingError `` if decoding fails.
125125 public static func array< Bytes: SwiftProtobufContiguousBytes > (
126126 fromJSONUTF8Bytes jsonUTF8Bytes: Bytes ,
127127 extensions: any ExtensionMap = SimpleExtensionMap ( ) ,
0 commit comments