---
title: "raise(_:format:arguments:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nsexception/raise(_:format:arguments:)"
---

# raise(_:format:arguments:)

Creates and raises an exception with the specified name, reason, and arguments.

## Declaration

```swift
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

Discussion The user-defined dictionary of the generated object is nil.

## See Also

### Creating and Raising an NSException Object

- [init(name:reason:userInfo:)](foundation/nsexception/init(name:reason:userinfo:).md)
- [raise()](foundation/nsexception/raise().md)
