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

Dma, what effect does memory have on dma? what about on board cache? how mu...

what effect does memory have on dma? what about on board cache? how much are the system buses available?

Explain software reliability, Software Engineering 1. Discuss the Limit...

Software Engineering 1. Discuss the Limitation of linear sequential model in software engineering. 2. Explain Software reliability? Why reliability is more important than ef

Span and average span size of a program, Q. Explain Span and average span s...

Q. Explain Span and average span size of a program? Span dimension indicates the number of statements that pass between successive uses of a variable. For illustration in the f

What are the types of software system requirements, What are the types of S...

What are the types of Software system requirements? Functional requirements: Services the system should give. Non-functional requirements: Constraints on the services.

What is data dictionary, What is Data Dictionary? Data dictionary is a ...

What is Data Dictionary? Data dictionary is a storehouse of data giving information about data. It is a list of terms and their meaning for all data items and data files of a s

What is review, What is Review? Ans) A method or meeting during which a ...

What is Review? Ans) A method or meeting during which a work product or set of work products, is shown to project personnel, managers, users, customers, or other interested part

What are the different types of cohesion, What are the different types of C...

What are the different types of Cohesion? i. Coincidentally cohesive -The modules in which the set of tasks are related with each other loosely then such modules are called as

What is dynamic and static metrics, What is Dynamic and static metrics? ...

What is Dynamic and static metrics? Dynamic metrics are closely related to software quality attributes It is relatively easy to measure the response time of a system (per

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