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

What is cmmi assessment, What is CMMI assessment? Examines the processe...

What is CMMI assessment? Examines the processes used in an organisation and assesses their maturity in every process area. Based on a 6-point scale: Not performed;

How can we use spiral model in large-scale systems, Q. How can we use Spira...

Q. How can we use Spiral model in large-scale systems? Spiral model is as well known as spiral life cycle model is the system development life cycle model utilized in informati

Calculate the values of software, Q. For the program given below, calculate...

Q. For the program given below, calculate the values of software science measures like ? , N, V, E and λ . int. sort (int x[], int n) { int i, j, save, im1; /

Determine the steps of structured requirements definition, Determine the di...

Determine the different steps of Structured Requirements Definition Step 1: Make a user level data flow diagram. This step is meant for gathering requirements with intera

Explain acceptance testing, Testing conducted to verify whether or not a sy...

Testing conducted to verify whether or not a system satisfies its acceptance criteria and to enable the customer to verify whether or not to accept the system. Contrast with testin

Data dictionary , data dictionary diagram for library management system

data dictionary diagram for library management system

Disadvantage of software package, Disadvantage of Software package: Th...

Disadvantage of Software package: There are some disadvantages which need to be looked into. They are:  i)  A commercial software package will have a number of built-in

Define capability, Define capability. What are the quantities that determin...

Define capability. What are the quantities that determine the degree of capability of a software reliability model? Capability refers to the ability of the model to calculate w

Diff. b/w IT & CSE TRADE, Hello I want to know the actual difference b/w in...

Hello I want to know the actual difference b/w information technology & computer science & engineering ? Thanks

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