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

Describe any 4 characteristics of distributed systems, QUESTION - Character...

QUESTION - Characteristics of DSs (a) List and describe any 4 characteristics of distributed systems. (b) State the criterion for a system to be considered as not a distrib

Need of data dictionaries, Objectives of Data dictionaries:- 1) A stand...

Objectives of Data dictionaries:- 1) A standard definition of every terms in a system that is each item of data is uniquely identified and defined. 2) Simple cross-referenci

Explain storage testing, This is a explanation of whether or not certain pr...

This is a explanation of whether or not certain processing conditions use many storage [memory] than estimated.

What is software measure, What is software measure? A software measure ...

What is software measure? A software measure is a mapping from a set of objects in the software engineering world information a set of mathematical construct like numbers or ve

Important issues related to srs, Q. Important issues related to SRS? (a...

Q. Important issues related to SRS? (a) System goals as well as requirements are different- Goal is a more general characteristics. For example Whole system must be designed in

Software availability, Software Availability: In the present day conte...

Software Availability: In the present day context, software suppliers have realised the potential demand and also the special requirements of library and information professio

Define software prototyping, Define software prototyping. Software prot...

Define software prototyping. Software prototyping is explained as a rapid software development for validating the requirements.

Form building, how can i build a data base in easy method on database

how can i build a data base in easy method on database

What is oo integration testing, This strategy includes testing the classes ...

This strategy includes testing the classes as they are integrated into the system. The traditional approach would test every operation separately as they are executed into a class.

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