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

Explain the bath tub curve of hardware reliability, Q. Explain the bath tub...

Q. Explain the bath tub curve of hardware reliability? Ans: As indicated in the diagram below there are three phasing in the life of whichever hardware component that is burn

Distinguish between verification and validation, Distinguish between verifi...

Distinguish between verification and validation. Verification refers to the set of activities that make sure that software correctly executes a specific function. Validation re

Define the load address for the first word of the program, Define the Load ...

Define the Load address for the first word of the program is known as Load address origin is called as a Load address for the first word of the program

Define about the integration testing, Define about the Integration testing ...

Define about the Integration testing - This test is performed to verify interfaces between system components, interactions between application and file system, hardware and ot

Project, How to create A system to incorporate uploading and display of dif...

How to create A system to incorporate uploading and display of different media types on the web e.g. audio, video, graphics, text, power point files, excel files, Word files on the

State the primary objectives of analysis model, State the primary objective...

State the primary objectives of analysis Model. To explain what the customer needs To set up a basis for the creation of a software design To explain a set of requirem

Describe the various types of restructuring techniques, Describe the variou...

Describe the various types of restructuring techniques. (a) Code Restructuring: It is performed to yield a design that produces the similar function but with higher quality t

Explain difference between test plan and master test plan, What is the diff...

What is the difference between Test Plan and Master Test Plan. Master Test Plan - i.) It is mandatory in all projects. ii.) It provides strategy to be used to test the

In how many types requirements have been classified, In how many types requ...

In how many types requirements have been classified Requirements are classified in the below two types: i)  Functional requirements: They define the factors such as I/O fo

Encryption-decryption algorithms and aes, Introduction The goal of the ...

Introduction The goal of the assignment is to build functionality on top of twitter that allows you to encrypt tweets to subgroups of your twitter Background Material R

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