Skip to content

Instantly share code, notes, and snippets.

@Alexander-Ignition
Created June 12, 2016 07:51
Show Gist options
  • Save Alexander-Ignition/e79fdce557726e951ff1af50f623a264 to your computer and use it in GitHub Desktop.
Save Alexander-Ignition/e79fdce557726e951ff1af50f623a264 to your computer and use it in GitHub Desktop.
unimplemented
func unimplemented(file: StaticString = #file, line: UInt = #line, function: StaticString = #function) -> NSError {
let userInfo = [
NSLocalizedDescriptionKey: "`\(function)`is not implemented",
NSLocalizedFailureReasonErrorKey: "\(file): \(line)"
]
return NSError(domain: NSOSStatusErrorDomain, code: -4, userInfo: userInfo)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment