Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7957007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:10:15+00:00 2026-06-04T04:10:15+00:00

I am a computer science student and I am about to finish soon. We

  • 0

I am a computer science student and I am about to finish soon.
We now have to code a complete application in the language of our choice.
We chose Objective-C because we all are Mac people.

There are a few things that have to be done to make our professors happy 🙂
One assignment is:

Choose a methodology to handle the errors in your application.
Make sure all errors that could occur are handled properly!

Since the very beginning of our course we’ve been learning Java.
So we know that the Java guys do most of their error handling with exceptions.

I’ve read through a lot of resources and documents online. I also read Aaron Hillegass’s book “Cocoa programming for Mac OS X”. I (almost) never read anything about exceptions in the context of Cocoa programming.

What I would like to know is how you guys implement error-handling in your Objective-C code? I of course handled my errors somehow until now, but there was no concept behind it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:10:18+00:00Added an answer on June 4, 2026 at 4:10 am

    In Objective C, exceptions are intended to be used for fatal errors that usually indicate programmer error. Routine error handling in the Cocoa frameworks is typically handled by passing around NSError objects. Methods that may suffer errors accept NSErrors as arguments. In the event of an error, they will fill out the error that was passed to them. It is then the responsibility of the calling code to examine the error and act appropriately.

    For further reading see:
    https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ErrorHandlingCocoa/ErrorObjectsDomains/ErrorObjectsDomains.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a computer science college student. Yesterday, I have a class about Binary Search
I'm a Computer Science student and have to complete my final year project. I
I am a layman to computer science, I have some questions about terminology of
I'm a computer science student. Currently we are learning the Ada programming language. The
Hi I am a 3rd year computer science student and I have create a
I am college student (computer science) and have just started a C# programming class.
I am a computer science student and taking my first C++ class. I have
I am a computer science student currently doing an internship. My boss has asked
I'm an undergrad Computer Science student and studying online. There is a lot of
I'm a computer science student finishing up my second semester of programming classes. I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.