You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wrap .org XML RPC error enum in an Error-conforming struct
Jumping through this hoop was necessary to avoid the Swift compiler
automatically generating an error domain for the `Error` and making it
impossible to successfully redefine the domain at the `CustomNSError`
conformance site.
returnNSLocalizedString("There was a problem communicating with the site.", comment:"A general error message shown to the user when there was an API communication failure.")
312
-
}
313
-
314
-
publicvarfailureReason:String?{
315
-
switchself{
316
-
case.httpErrorStatusCode:
317
-
returnNSLocalizedString("An HTTP error code was returned.", comment:"A failure reason for when an error HTTP status code was returned from the site.")
318
-
case.requestSerializationFailed:
319
-
returnNSLocalizedString("The serialization of the request failed.", comment:"A failure reason for when the request couldn't be serialized.")
320
-
case.responseSerializationFailed:
321
-
returnNSLocalizedString("The serialization of the response failed.", comment:"A failure reason for when the response couldn't be serialized.")
322
-
case.unknown:
323
-
returnNSLocalizedString("An unknown error occurred.", comment:"A failure reason for when the error that occured wasn't able to be determined.")
0 commit comments