I\'m trying to raise an exception in Swift by calling NSException.raise(). The definition is:
class func raise(_ name: String!, format format: String!, arguments
var e = NSException(name:"name", reason:"reason", userInfo:["key":"value"]) e.raise()
Or:
var e = NSException(name:"name", reason:"reason", userInfo:nil) e.raise()
NSException(name:"name", reason:"reason", userInfo:nil).raise()