raise(_:format:arguments:)
Creates and raises an exception with the specified name, reason, and arguments.
Declaration
class func raise(_ name: NSExceptionName, format: String, arguments argList: CVaListPointer)Parameters
- name:
The name of the exception.
- format:
A human-readable message string (that is, the exception reason) with conversion specifications for the variable arguments in
argList. - argList:
Variable information to be inserted into the formatted exception reason (in the manner of
vprintf).
Discussion
The user-defined dictionary of the generated object is nil.