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

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

Mention some of the Design principles. a.    The design process should not suffer from tunnel vision. b.    The design should not reinvent the wheel. c.     The Design sh

What is the use of user interface prototyping, What is the use of User Inte...

What is the use of User Interface prototyping? This prototyping is used to pre-specify the look and feel of user interface in an effective way.

Explain glass box testing, Glass box testing is the similar as white box te...

Glass box testing is the similar as white box testing. It's a testing approach that consider the application's program structure, and derives test cases from the application's prog

What do you mean by configuration management, Q. What do you mean by Config...

Q. What do you mean by Configuration Management? Because of several reasons software changes during its life cycle. Consequently of the change made multiple versions of the sof

What is parkinsons law, What is Parkinson's Law? Parkinson's Law states...

What is Parkinson's Law? Parkinson's Law states that work expands to fill the time available. The cost is fixed by available resources rather than by objective assessment.

Explain cyclomatic complexity, What is cyclomatic complexity? Cyclomati...

What is cyclomatic complexity? Cyclomatic complexity is software metric that gives the quantitative measure of logical complexity of the program. The Cyclomatic complexity e

System Analysis and Design, Hello Sir, i want help in my assignment. UNIT n...

Hello Sir, i want help in my assignment. UNIT name: System analysis and design

Advantages of incremental model, Advantages of incremental Model:- ...

Advantages of incremental Model:- As product is to be delivered in parts, total cost of the project is dispersed. Limited number of persons can be put on to the projec

Determine the latest trend in software engineering, Determine the Latest tr...

Determine the Latest trend in software engineering Latest trend in software engineering includes the concepts of software reusability, reliability, scalabilityetc. More and mo

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