|
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | 16 |
|
| 17 | +@available(gRPCSwiftProtobuf 1.0, *) |
17 | 18 | extension ErrorDetails: CustomStringConvertible { |
18 | 19 | public var description: String { |
19 | 20 | switch self.wrapped { |
@@ -46,54 +47,63 @@ extension ErrorDetails: CustomStringConvertible { |
46 | 47 | // Some errors use protobuf messages as their storage so the default description isn't |
47 | 48 | // representative |
48 | 49 |
|
| 50 | +@available(gRPCSwiftProtobuf 1.0, *) |
49 | 51 | extension ErrorDetails.ErrorInfo: CustomStringConvertible { |
50 | 52 | public var description: String { |
51 | 53 | "\(Self.self)(reason: \"\(self.reason)\", domain: \"\(self.domain)\", metadata: \(self.metadata))" |
52 | 54 | } |
53 | 55 | } |
54 | 56 |
|
| 57 | +@available(gRPCSwiftProtobuf 1.0, *) |
55 | 58 | extension ErrorDetails.DebugInfo: CustomStringConvertible { |
56 | 59 | public var description: String { |
57 | 60 | "\(Self.self)(stack: \(self.stack), detail: \"\(self.detail)\")" |
58 | 61 | } |
59 | 62 | } |
60 | 63 |
|
| 64 | +@available(gRPCSwiftProtobuf 1.0, *) |
61 | 65 | extension ErrorDetails.QuotaFailure.Violation: CustomStringConvertible { |
62 | 66 | public var description: String { |
63 | 67 | "\(Self.self)(subject: \"\(self.subject)\", violationDescription: \"\(self.violationDescription)\")" |
64 | 68 | } |
65 | 69 | } |
66 | 70 |
|
| 71 | +@available(gRPCSwiftProtobuf 1.0, *) |
67 | 72 | extension ErrorDetails.PreconditionFailure.Violation: CustomStringConvertible { |
68 | 73 | public var description: String { |
69 | 74 | "\(Self.self)(subject: \"\(self.subject)\", type: \"\(self.type)\", violationDescription: \"\(self.violationDescription)\")" |
70 | 75 | } |
71 | 76 | } |
72 | 77 |
|
| 78 | +@available(gRPCSwiftProtobuf 1.0, *) |
73 | 79 | extension ErrorDetails.BadRequest.FieldViolation: CustomStringConvertible { |
74 | 80 | public var description: String { |
75 | 81 | "\(Self.self)(field: \"\(self.field)\", violationDescription: \"\(self.violationDescription)\")" |
76 | 82 | } |
77 | 83 | } |
78 | 84 |
|
| 85 | +@available(gRPCSwiftProtobuf 1.0, *) |
79 | 86 | extension ErrorDetails.RequestInfo: CustomStringConvertible { |
80 | 87 | public var description: String { |
81 | 88 | "\(Self.self)(requestID: \"\(self.requestID)\", servingData: \"\(self.servingData)\")" |
82 | 89 | } |
83 | 90 | } |
84 | 91 |
|
| 92 | +@available(gRPCSwiftProtobuf 1.0, *) |
85 | 93 | extension ErrorDetails.ResourceInfo: CustomStringConvertible { |
86 | 94 | public var description: String { |
87 | 95 | "\(Self.self)(name: \"\(self.name)\", owner: \"\(self.owner)\", type: \"\(self.type)\", errorDescription: \"\(self.errorDescription)\")" |
88 | 96 | } |
89 | 97 | } |
90 | 98 |
|
| 99 | +@available(gRPCSwiftProtobuf 1.0, *) |
91 | 100 | extension ErrorDetails.Help.Link: CustomStringConvertible { |
92 | 101 | public var description: String { |
93 | 102 | "\(Self.self)(url: \"\(self.url)\", linkDescription: \"\(self.linkDescription)\")" |
94 | 103 | } |
95 | 104 | } |
96 | 105 |
|
| 106 | +@available(gRPCSwiftProtobuf 1.0, *) |
97 | 107 | extension ErrorDetails.LocalizedMessage: CustomStringConvertible { |
98 | 108 | public var description: String { |
99 | 109 | "\(Self.self)(locale: \"\(self.locale)\", message: \"\(self.message)\")" |
|
0 commit comments