SyntaxFix
Write A Post
Hire A Developer
Questions
You should use NSError object.
let error = NSError(domain:"", code:401, userInfo:[ NSLocalizedDescriptionKey: "Invalid access token"])
Then cast NSError to Error object