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 sei capability maturity model, What is SEI capability maturity mode...

What is SEI capability maturity model? Initial Essentially uncontrolled Repeatable Product management procedures explained and used Defined Proc

Explain quality assurance and standards, Quality assurance and standards ...

Quality assurance and standards Standards are the key to effective quality management. They may be international, national, and organizational or project standards. Prod

Explain the bottom-up approach, What is bottom-up approach? System deve...

What is bottom-up approach? System developed beginning  from detailed modules. Testing begins from the detailed modules and proceeds up to the higher levels of hierarchy.

Open source software, what are the advantages of open source software?

what are the advantages of open source software?

What is a vertical microinstruction, What is a vertical microinstruction? ...

What is a vertical microinstruction? Ans) A vertical microinstruction is a microinstruction that states one of a sequence of operations required to carry out a machine language

Memory locations and registers pc-ir-mar, Assume 64 different op codes and ...

Assume 64 different op codes and 19-bit instruction word in a computer system. Two bits in the instruction are reserved to indicate the addressing mode.    a. Draw a box style ske

What is cause-effect graphing, A testing method that aids in selecting, in ...

A testing method that aids in selecting, in a systematic way, a high-yield set of test cases that logically relates causes to effects to produce test cases. It has a useful side ef

Testing, What is software testing?

What is software testing?

Jenny Smith, RE : Website Google Ranking Hi, We can fairly quickly promot...

RE : Website Google Ranking Hi, We can fairly quickly promote your website to the top of the search rankings with no long term contracts! We can place your website on top of the

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