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 maintenance and cocomo model, What is software maintenance...

What is software maintenance? Software maintenance is a set actions in which program are customized after it has been put into use. COCOMO model :- COnstructive COst MOd

Designing website, I have to make assets for the design that i have done fo...

I have to make assets for the design that i have done for the website but i dont know how to do it can you please help me?

Explain usability testing, Usability testing is testing of 'user-friendline...

Usability testing is testing of 'user-friendliness'. User interviews, surveys, video recording of user sessions and other methods can be used. Programmers and developers are usuall

Draw a use case diagram, QUESTION (a) Draw a use case diagram (UCD) for...

QUESTION (a) Draw a use case diagram (UCD) for the given case study. For any one use case give a detail use case specification (b) Describe the different phases and workflow

What is the use of architectural design, What is the use of Architectural d...

What is the use of Architectural design? The Architectural design explains the relationship among major structural elements of the software, the "design patterns" that can be u

Mca, encoded micro instruction vs unecoded micro instruction

encoded micro instruction vs unecoded micro instruction

Category Partition Testing and Data Flow Assignment, The following program ...

The following program will display an integral solution to the quadratic equation ax2+bx+c for integral values of a,b, and c, where a,c fall between 0 and 10, while b falls between

Write definition of erd, Write definition of ERD? Entity Relationship D...

Write definition of ERD? Entity Relationship Diagram shows the graphical presentation of the object relationship pair. It is above all used in database applications.

What are task regions in the spiral model, What are task regions in the Spi...

What are task regions in the Spiral model. Customer communication - In this region it is recommended to establish customer communication. Planning - All planning doings are

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