We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a6cb4d commit 72f8447Copy full SHA for 72f8447
Source/Error.swift
@@ -30,7 +30,11 @@ import Foundation
30
public struct InvalidJSONError: CustomNSError {
31
/// Further description of this error.
32
public let description: String
33
-
+
34
+ public init(description: String) {
35
+ self.description = description
36
+ }
37
38
// MARK: CustomNSError protocol
39
// ... for Objective-C bridging.
40
@@ -54,7 +58,7 @@ public struct HTTPError: CustomNSError {
54
58
/// Optional message returned by the server.
55
59
public let message: String?
56
60
57
- internal init(statusCode: Int, message: String? = nil) {
61
+ public init(statusCode: Int, message: String? = nil) {
62
self.statusCode = statusCode
63
self.message = message
64
}
0 commit comments