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 risk assessment, What is Risk Assessment? Ans) A associated impa...

What is Risk Assessment? Ans) A associated impact and its comprehensive evaluation of the risk

How can we re-engineering of any product, How can we re-engineering of any ...

How can we re-engineering of any product One additional difficulty in adopting this approach is large investment which exists in software system maintenance. It requires additi

Define equivalence class, Equivalence class: -It shows a set of valid or in...

Equivalence class: -It shows a set of valid or invalid states for input conditions. An input condition is either a particular numeric value, a range of values, a set of related val

What is statement coverage, What is statement coverage? Statement cover...

What is statement coverage? Statement coverage is the testing to test each statement in the code has been executed at least once.

E-R diagram, Draw an E-R diagram for the following situation: an account is...

Draw an E-R diagram for the following situation: an account is a relationtion between cutosmer and bank. A customer had a name.

calculus, solve inequalities and graph the solutions: [z/25-1

solve inequalities and graph the solutions: [z/25-1]

What is integration testing and system testing, What is the difference in w...

What is the difference in writing the test cases for Integration testing and system testing? Integration testing is done at module level when lots of modules are integrated wit

The sequence of testing, The sequence of testing is: a) Unit testing: ...

The sequence of testing is: a) Unit testing: b) Integration testing: Alpha Testing- Beta testing Acceptance Testing

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