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

Explain scalability of information systems, Question: (a) The relations...

Question: (a) The relationship between organisations and information technology is a complex one, and is made up of a number of mediating factors which must be considered prior

Mca, encoded micro instruction vs unecoded micro instruction

encoded micro instruction vs unecoded micro instruction

What are the three activities of risk assessment, What are the three activi...

What are the three activities of risk assessment? The three activities are identifying, examining and giving priorities . Risks can be identified by a check list or looking at

Characteristics of an embedded system, Question: a) Draw a diagram show...

Question: a) Draw a diagram showing the parts of an embedded system. b) Give the definition of an Embedded Computer. c) Discuss the similarities and differences between a

Testing, cause effect testing

cause effect testing

Artificial intelligence, what are the characteristics of artificial intelli...

what are the characteristics of artificial intelligence

RMMM Planner, Give a complete example that how to tackle with it.

Give a complete example that how to tackle with it.

What are documentation standards, What are Documentation standards? P...

What are Documentation standards? Particularly important - documents are the tangible manifestation of the software. Documentation process standards Concerned with how

Describe the various steps of the reuse-oriented model, Q. Describe the var...

Q. Describe the various steps of the reuse-oriented model? The reuse-oriented model, also called reuse-oriented development (ROD), is a method of software development in which

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