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

Relationship between agent technology and grid computing, Question: (a)...

Question: (a) Show three application areas for agents. (b) What do you meant by "temporally coupled coordination"? Provide an example of a temporally coupled coordination

Explain throw-away prototyping, Throw-away prototyping Objective: ...

Throw-away prototyping Objective: The principal objective of this model is to validate or to derive the system requirements. It is developed to reduce requir

What is dfd, What is DFD? Data Flow Diagram depicts the information flo...

What is DFD? Data Flow Diagram depicts the information flow and the transforms that are applied on the data as it moves from input to output.

What is a user manual, What is A user manual? Ans) A "user manual" is a ...

What is A user manual? Ans) A "user manual" is a document that presents information essential to employ software or a system to get the desired results. Typically, what is expla

What is meant by software engineering, What is meant by Software Engineerin...

What is meant by Software Engineering? The application of a disciplined, systematic, quantifiable approach to the development, maintenance & operation of software. (i.e.)The En

Functional testing and structural test, Differentiate between functional te...

Differentiate between functional testing and structural testing. Functional testing also known as behavioural testing or  Black box testing. In this methods, tester design te

What is oo function testing, Function testing of OO software is no dissimil...

Function testing of OO software is no dissimilar than validation testing of procedural software. Client involvement is generally part of this testing stage. In OO environment use c

What is gamma testing, Gamma testing is testing of software that does have ...

Gamma testing is testing of software that does have all the needed features, but did not go by all the in-house quality checks.

Illustrate the method of user documentation, Illustrate the method of User ...

Illustrate the method of User documentation This usually comprises: -  How to load/run the software -  How to do a search   -  How to save files   -  How to do pri

Explain applicability, Applicability: It is another significant characteri...

Applicability: It is another significant characteristic of a model. The model should be judged by its degree of applicability across software products that change in size, structu

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