toNSError

fun ClientException.toNSError(): NSError

Converts a ClientException into an NSError object for better interop with Objective-C, Swift projects.

Return

The NSError object created from the ClientException.