---
title: "What is difference between Exception  and Error in iOS?."  
description: "What is difference between Exception  and Error in iOS?."  
author: "Sunil Singh"  
published: 2017-01-10  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/23161/what-is-difference-between-exception-and-error-in-ios  
category: "ios"  
tags: ["iphone", "ios", "iphone sdk", "ipad"]  
reading_time: 1 minute  

---

# What is difference between Exception  and Error in iOS?.

**Exception** is programmer-level bug for example trying to access array index that not exist in array. In iOS Exception base class are NSException. Error is user- level bug such as trying to load a file that does not exist .Error indicate problem that a reasonable application should not try to catch. Error are represented by NSError Class.

## Answers

### Answer by Sunil Singh

**Exception** is programmer-level bug for example trying to access array index that not exist in array. In iOS Exception base class are NSException. Error is user- level bug such as trying to load a file that does not exist .Error indicate problem that a reasonable application should not try to catch. Error are represented by NSError Class.


---

Original Source: https://www.mindstick.com/interview/23161/what-is-difference-between-exception-and-error-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
