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 pure and impure interpreter, what is interpreter explain pure and i...

what is interpreter explain pure and impure interpretion

Hotel reservation, how to make pseudo code of hotel reservation

how to make pseudo code of hotel reservation

What is user friendly software, A computer program is "user friendly", when...

A computer program is "user friendly", when it is designed with simple of use, as one of the primary purposes of its design.

What is role of software engineer in software development, Q Who is a Softw...

Q Who is a Software Engineer? What is his role in software development process? Ans) A software engineer is responsible for the implementation and design of a variety of softwa

Product lines, Product lines Being well-informed about all your company...

Product lines Being well-informed about all your company products and services is necessary for the selling process and to giving good customer service.  A salesperson shoul

Factory method, For this assignment you will create a program called MMWord...

For this assignment you will create a program called MMWordFix (Multi-Mode WordFix). This program prompts the user to select one of three word filters (uppercase, lowercase, encryp

Behavioral analysis model, Behavioral Analysis Model The Behavioral ...

Behavioral Analysis Model The Behavioral analysis is an operational technique for all requirement analysis techniques. When a sensor event is recognized the software invokes

Mention some of the notations for requirements specification, Mention some ...

Mention some of the Notations for requirements specification. Structured natural language: Use standard Templates or form. Design description language: Programming langua

Explain acceptance testing, Testing conducted to verify whether or not a sy...

Testing conducted to verify whether or not a system satisfies its acceptance criteria and to enable the customer to verify whether or not to accept the system. Contrast with testin

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