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 metric, What is Software metric? Any type of measureme...

What is Software metric? Any type of measurement which relate to a software system, process or related documentation Lines of code in a program, the Fog index, number of

Explain quality assurance and standards, Quality assurance and standards ...

Quality assurance and standards Standards are the key to effective quality management. They may be international, national, and organizational or project standards. Prod

What is the test case, Test Case A test case is a unit level document d...

Test Case A test case is a unit level document describing the inputs, steps of implementation and the expected result of each test condition for each requirement from the BRD.

Advantage of software package, Advantage of software package: Advantag...

Advantage of software package: Advantages accrue from this situation. Some of these are mentioned below:  i)  An efficient software package requires at least 4 to 5 man yea

Behavioral analysis model, Behavioral Analysis Model The Behavioral ...

Behavioral Analysis Model The Behavioral analysis is an operational technique for all requirement analysis techniques. When a sensor event is recognized the software invokes

Discuss in details about integration testing, Discuss in details about Inte...

Discuss in details about Integration testing. It is a systematic procedure to construct the program structure. Incremental integration - The program is built and tested i

Write down the schema to represent the current system state, Question: ...

Question: Consider the University modular degree scheme where students choose a selection of modules from a large menu. Here we have the basic types [PERSON, MODULE], the set o

Explain structural things using conceptual model, Question: Part of the...

Question: Part of the conceptual model of UML is made up of four "things": "Structural things", Behavioral things", "Grouping things" and "Annotational things". Explain, using

What are the general activities in design process, What are the general act...

What are the general activities in design process? i. System structuring - The system is separated into principle subsystems components and communications among these subsystem

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