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

Explain the purpose of checkpoints in winrunner, Explain the purpose of che...

Explain the purpose of checkpoints in Winrunner? Checkpoints help to compare behavior of current application to its previous version. There are total of four types of checkpoin

Illustrate about system testing, Q. Illustrate about System Testing? Sy...

Q. Illustrate about System Testing? System Testing: This testing centred on validating the product with respect to software specification Document. Techniques as function testi

Define the meaning of code inspection, Define the meaning of Code Inspectio...

Define the meaning of Code Inspection - A formal testing technique where programmer reviews source code with a group who ask questions analyzing program logic, analyzing code

Defining a prototype on the overall cost, Describe the effect of defining a...

Describe the effect of defining a prototype on the overall cost of the software project? The prototyping model: In this model, a prototype (an previous approximation of a fin

Allocate operations to the entity life history diagram, QUESTION 1 (a) ...

QUESTION 1 (a) Suggest how the atomicity of EV1 "Request for estimate" could be improved (b) Document any five events listed above (Tip: state the actor, system agent, input

Define about the requirement traceability matrix, When is RTM (Requirement ...

When is RTM (Requirement traceability matrix) prepared - after or before test case designing? - RTM is prepared before test case designing. - Requirements must be traceable

Connectivity Issue in Asp.net, Sir, our project is not connecting with SQL ...

Sir, our project is not connecting with SQL server. How to insert own created database in ASP.net

Design and run the usability testing, You have been commissioned to design ...

You have been commissioned to design and run the usability testing for an upcoming e-commerce website that will sell computing hardware and software. In this first part of the

Explain good design, Design could mean to lots of things, but often refers ...

Design could mean to lots of things, but often refers to internal design or functional design. Good functional design is point to by software functionality can be traced back to cu

Data dictionary , data dictionary diagram for library management system

data dictionary diagram for library management system

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