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 software fault, Software faults are unseen programming errors. Soft...

Software faults are unseen programming errors. Software faults are errors in the correctness of the semantics of computer programs.

What does verification represent, What does Verification represent? Ver...

What does Verification represent? Verification shows the set of activities that are carried out to confirm that the software correctly executes the specific functionality.

What is stepwise refinement, Q. What is stepwise refinement? Stepwise R...

Q. What is stepwise refinement? Stepwise Refinement:-Stepwise Refinement is a top-down design strategy initially proposed by Niklaus Wirth. A program is developed by consecutiv

Explain spiral model, Explain Spiral model The spiral model is separ...

Explain Spiral model The spiral model is separated into number of frame works. These frameworks are indicated by task regions. Usually there are six task regions. In spir

Structure analysis, what tools are used for analysis of any software system...

what tools are used for analysis of any software system?

Need help with my program deadline is tomoroow , I have a vb.net applicatio...

I have a vb.net application i would like to add database function + coding the the function to let the application work and also to add a login window for the customers + custom

What is version and release management, What is Version and release managem...

What is Version and release management? Invent an identification system for system versions. Plan when a new system version is to be formed. Ensure that version managemen

Define maintenance, Define maintenance. Maintenance is explained as the...

Define maintenance. Maintenance is explained as the process in which changes are executed by either modifying the existing system's architecture or by adding latest components

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