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 product metrics, Product metrics: explain the characteristics of t...

Product metrics: explain the characteristics of the product such as size, complexity, design features, performance, efficiency, reliability, portability, etc.

What is software engineering, What is software engineering? Software en...

What is software engineering? Software engineering is a regulation in which theories, methods and tools are applied to make professional software.

What is system engineering, What is System Engineering? System Engineer...

What is System Engineering? System Engineering means designing, executing, deploying and operating systems which contain hardware, software and people.

Illustrate about the managed level of maturity model, Level 4 (Managed) ...

Level 4 (Managed) Organisation satisfies all the requirements of level-3. At this level quantitative standards are set for software processes andproducts. Project analysis is

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

Software quality attributes, The Clue-Less system shall be available to all...

The Clue-Less system shall be available to all users on the Internet 95% of the time between 5:00pm and midnight local time and 90% of the time between midnight and 5:00pm local ti

Explain equivalence partitioning, What is equivalence partitioning? Equ...

What is equivalence partitioning? Equivalence partitioning is a black box procedure that divides the input domain into classes of data. From this data test cases can be foun

Answer, write a decision table that specifies the rules for the game of che...

write a decision table that specifies the rules for the game of checkers

Mention some of the design principles, Mention some of the Design principle...

Mention some of the Design principles. The design process should not vary from tunnel vision. The design should not reinvent the wheel. The Design should exhibit unifo

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