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

Joomla, want to learn joomla

want to learn joomla

What are the different levels of cmm, Different levels of CMM: 1) Initi...

Different levels of CMM: 1) Initial (maturity level 1) 2) Repeatable (maturity level 2) 3) Defined (maturity level 3) 4)  Managed (maturity level 4) 5) Optimizing (

Software Metircs, I have a comprehensive question for Software Metrics ...i...

I have a comprehensive question for Software Metrics ...it is 16 question

FTR., Formal technical review in railway reservation system

Formal technical review in railway reservation system

Usual stages of the simplified design process, Q. Usual stages of the simpl...

Q. Usual stages of the simplified design process? Pre-production design Design brief it is an early often the beginning statement of design goals Analysis i

DFD AND DATA DICTIONARY, Hoosier Burger''s food ordering system dfd and dat...

Hoosier Burger''s food ordering system dfd and data dictionary

Illustrate the introduction to flowcharts, Illustrate the Introduction to F...

Illustrate the Introduction to Flowcharts This mainly covers four areas: 1 Common flow chart symbols 2 Writing flowcharts to solve problems 3 Dry running of flowcharts

Define debugging, Define debugging. Debugging is explained as the proce...

Define debugging. Debugging is explained as the process of removal of defect. It happens as a consequence of successful testing

What is oo system testing, OO system testing is actually identical to its c...

OO system testing is actually identical to its counterpart in the procedural environment.

What is closed box testing, Closed box testing is similar as black box test...

Closed box testing is similar as black box testing. Black box testing a type of testing that examine only externally visible behavior.

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