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

Define white box testing, Define White box testing White box testing ...

Define White box testing White box testing method deals with the internal logic and structure of the code. White box testing also called as glass, structural, branches, paths

What are cmmi model components, What are CMMI model components? Proces...

What are CMMI model components? Process areas 24 process areas that are applicable to process capability and improvement are identified. These are organised int

What are the fundamental activities of a software process, What are the fun...

What are the fundamental activities of a software process?   Specification  Design and implementation Validation Evolution

Explain about the spiral model, Explain about the Spiral Model This mod...

Explain about the Spiral Model This model can be considered as the model that combines the strengths of various other models. Conventional software development processes don't

What is configuration management, What is configuration Management? Sof...

What is configuration Management? Software Configuration management (SCM) is the task of tracking and controlling alters in the software. Configuration management practices con

Explain re-engineering, RE-ENGINEERING:- It is re-organizing and changing ...

RE-ENGINEERING:- It is re-organizing and changing existing system to make them more maintainable. It includes:-  Source code translation. Program structure development

Explain the information flow continuity, What is meant by Information flow ...

What is meant by Information flow Continuity? When we refine a fundamental model for a system, the information flow continuity should be maintained .ie, input & output to each

What are the different types of cohesion, What are the different types of C...

What are the different types of Cohesion? i. Coincidentally cohesive -The modules in which the set of tasks are related with each other loosely then such modules are called as

How does a countermeasure affect a project plan, Question: a) Failures ...

Question: a) Failures in software development would include excessive cost and/or schedule delays to never fielding a system. Briefly explain the risks associated with develop

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