---
title: Errors and Exceptions
framework: foundation
role: collectionGroup
role_heading: API Collection
path: foundation/errors-and-exceptions
---

# Errors and Exceptions

Respond to problem situations in your interactions with APIs, and fine-tune your app for better debugging.

## Topics

### User-Relevant Errors

- [Error](swift/error.md)
- [NSError](foundation/nserror.md)
- [LocalizedError](foundation/localizederror.md)
- [RecoverableError](foundation/recoverableerror.md)
- [CustomNSError](foundation/customnserror.md)

### Assertions

- [NSAssertionHandler](foundation/nsassertionhandler.md)

### Exceptions

- [NSException](foundation/nsexception.md)

### Diagnostics and Debugging

- [NSLogv(_:_:)](foundation/nslogv(_:_:).md)
- [NSLog(_:_:)](foundation/nslog(_:_:).md)

## See Also

### App Support

- [Task Management](foundation/task-management.md)
- [Resources](foundation/resources.md)
- [Notifications](foundation/notifications.md)
- [App Extension Support](foundation/app-extension-support.md)
- [Scripting Support](foundation/scripting-support.md)
