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 installation testing, Installation testing is testing full, partial...

Installation testing is testing full, partial, upgrade, or install/uninstall processes. The installation test for a release is conducted with the aim of demonstrating production re

State the working of system evaluation, State the Working of System Evaluat...

State the Working of System Evaluation compare final solution with original requirement identify any limitations in system identify any necessary improvements which

State procedural abstraction, State Procedural abstraction. A Procedur...

State Procedural abstraction. A Procedural abstraction is a named sequence of instructions that has a specific and limited function. Eg: Open Walk to the door, reach out &

Software requirements analysis, What types of models are formed during soft...

What types of models are formed during software requirements analysis?   Functional and behavioral

Define data dictionary, Define Data Dictionary. The data dictionary is ...

Define Data Dictionary. The data dictionary is defined as an organized collection of all the data elements of the system with accurate and rigorous definitions so that user and

Draw an entity relationship diagram, Problem: (a) Draw an Entity Relat...

Problem: (a) Draw an Entity Relationship Diagram for the given case study. Show entities and relationships on the diagram (attributes should not be shown). Cardinality and op

Incremental model, four circumstances where incremental model is appropriat...

four circumstances where incremental model is appropriate?

Iterative Enhancement Model, what is the advantage of Iterative Enhancement...

what is the advantage of Iterative Enhancement Model in developing a 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