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 maintenance, Define maintenance. Maintenance is defined as the ...

Define maintenance. Maintenance is defined as the procedure in which changes are executed by either modifying the existing system's architecture or by adding new mechanism to t

Compare the manpower and development time, Q. Compare the Manpower and deve...

Q. Compare the Manpower and development time? Manpower may perhaps refer to labour Manpower either an abstract term for human labour effort as opposed to machines, animals a

Explain the sauers model, Question 1: a) Describe the various activitie...

Question 1: a) Describe the various activities and or processes related to the development of Information systems. b) Using a diagram, show the several development processes

Reverse engineering, explain the effect of reverse engineering of software ...

explain the effect of reverse engineering of software development #

Define software lifecycle, Define Software Lifecycle. Software Lifecycl...

Define Software Lifecycle. Software Lifecycle is the time period beginning with the idea for a Software product ending whenever the Software is unavailable for use. SLC = SL

What is sei capability maturity model, What is SEI capability maturity mode...

What is SEI capability maturity model? Initial Essentially uncontrolled Repeatable Product management procedures explained and used Defined Proc

What is incremental analysis, Incremental analysis happens when (partial) a...

Incremental analysis happens when (partial) analysis may be performed on an incomplete product to permit early feedback on the development of that product.

Hart Protocol DD files, I am working on DD development project and I am us...

I am working on DD development project and I am using 475 field communicator for testing DD. While development of DD, I tested DD with SDC 625 PC application using HART modem. I h

Explain in detail about scm, Explain in detail about SCM. Software C...

Explain in detail about SCM. Software Configuration Management is an umbrella activity which is used throughout the software process. SCM Activities Identify cha

Recreating Sections of Google+ in C, Create a compound data type called Pos...

Create a compound data type called Post to store messages posted on Google+. Post should include: Name / Data Type / Description date / char [9] / date fields for

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