When must a function throw an exception, Software Engineering

Assignment Help:

When must a function throw an exception?

A function must throw an exception when it's not able to fulfil its promise.

As soon as function detects a problem which prevents it from fulfilling its promise, it must throw an exception. If function is able to handle problem, recover itself and deliver promise, the exception shouldn't be thrown.

If an event occurs very frequently then exception handling isn't the best way to deal with it. It requires proper fixation.

 


Related Discussions:- When must a function throw an exception

Daa, 3. Explain asymptotic notations and their significance

3. Explain asymptotic notations and their significance

Explain the software prototyping, What is meant by software prototyping? ...

What is meant by software prototyping? Software prototyping is a process of producing a model for the software product. This is developed based on the recently known requiremen

Explain walk-through, Explain Walk-through? Ans) A walk-through (in soft...

Explain Walk-through? Ans) A walk-through (in software QA) is a casual meeting for evaluation or informational purposes. A walk-through is also a method at an abstract level. It

In how many types requirements have been classified, In how many types requ...

In how many types requirements have been classified Requirements are classified in the below two types: i)  Functional requirements: They define the factors such as I/O fo

Event management information system in uml, Company Universal Consulting is...

Company Universal Consulting is a large consulting firm that specializes in IT consulting services for the Healthcare industry. The company employs over 2,000 dedicated IT professi

What is outputs, What is Outputs? Ans) Products, services, or informatio...

What is Outputs? Ans) Products, services, or information supplied to meet end user requirements.

Connectivity Issue in Asp.net, Sir, our project is not connecting with SQL ...

Sir, our project is not connecting with SQL server. How to insert own created database in ASP.net

Define software scope, Define software scope. The first software projec...

Define software scope. The first software project management activity is the determination of software scope. Scope is explained answering the following questions. Context:

Nature and types of softare packages, NATURE AND TYPES OF SOFTARE PACKAGES:...

NATURE AND TYPES OF SOFTARE PACKAGES: Software packages are commercially supplied products which typically provide solutions to a particular range of software development or a

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd