All Questions
4 questions
2
votes
1
answer
541
views
How to access Swift property from custom Error?
Code:
enum SHError: Error {
case InvalidInputError(code: Int, message: String, info: [String:Any]? = [:])
case InvalidProcessingError(code: Int, message: String, info: [String:Any]? = [:])
...
0
votes
1
answer
166
views
PromiseKit 6.0 error with launching IOS app
Is PromiseKit 6.0 structure Correct or not?? because i am receiving an error when i running my app :(
Here's the image:
//Promise block
firstly{
removePreviusSearch(text)
...
1
vote
2
answers
628
views
Unit test error throw in a block
I'm facing some warning issues in the following case:
let expect = expectation(description: "Async network call")
SomeManager.executeCall { result in
do {
/// 1.
...
1
vote
2
answers
2k
views
Errors thrown from here are not handled because the enclosing catch is not exhaustive
Swift Errors Thrown from here are not handled
I followed the above link but i still seeing that issue. Adding code below
do {
// print("\(v)")
let jsonData = try NSJSONSerialization....