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

State the level 3 of kpas, State the level 3 of KPAs Level 3 KPAs: ...

State the level 3 of KPAs Level 3 KPAs: 1)   Organisation Process Focus (OPF): Organisations responsibility is fixed for software process activities which improve the ul

Explain the corba component model types, Question 1: a. What are the F...

Question 1: a. What are the Facets of Component that you know about ? b. Explain the CORBA component Model types ? c. Talk about the three concepts that you should keep

What is the utilisation of cmm, What is the utilisation of CMM? Capabil...

What is the utilisation of CMM? Capability Maturity Model is used in assessing how fine an organisation's processes permit to complete and manage latest software projects

Give the overview of application software, Question 1 Give the classificat...

Question 1 Give the classification of computers and explain them briefly Question 2 Give the overview of application software Question 3 Explain the three main types of

What are the various types of system testing, What are the various types of...

What are the various types of system testing? 1. Recovery testing - is intended to check the system's ability to recover from failures. 2. Security testing - verifies th

Explain in detail about functional modelling, Explain in detail about Funct...

Explain in detail about Functional Modelling. This model explains the computations that take place within a system. This model is useful when the transformation from t

Explain the idea behind albrecht''s function points measure, Question: ...

Question: (a) Consider that every software failure can be classified as either • Syntactic, • Semantic, • System crash. Suppose additionally that every system crash fa

Mca, encoded micro instruction vs unecoded micro instruction

encoded micro instruction vs unecoded micro instruction

Write short notes on configuration management, Q. Write short notes on Conf...

Q. Write short notes on Configuration Management? Software configuration management is a bunch of tracking and control activities that begin when a software project begins an

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