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

Show the different levels of cmm, Q. Show the Different levels of CMM? ...

Q. Show the Different levels of CMM? 1) Initial (maturity level 1)- At this the lowest level there are fundamentally no sound software engineering management practices in plac

Ms project, what is meant by gantt chart who gave the name who is the found...

what is meant by gantt chart who gave the name who is the founder

What is data validity, Data validity is the reasonableness and correctness ...

Data validity is the reasonableness and correctness of data.

Advantages and disadvantages of business intelligence, 1) Case A...

1) Case Analysis (maximum of 6 pages per case, double spaced) The following format may be used as a guideline for Case Analysis: Key Issues Identified in Case Sta

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 &

Nature and types of softare packages, NATURE AND TYPES OF SOFTARE PACKAGES:...

NATURE AND TYPES OF SOFTARE PACKAGES: Software packages are commercially supplied products which typically provide solutions to a particular range of software development or a

What is parallel testing, Testing a new or an changed data processing syste...

Testing a new or an changed data processing system with the similar source data that is used in another system. The other system is taken as the standard of comparison.

Functional requirement for a library management system, Write down the func...

Write down the functional requirement for a Library management system. The user should capable to search either all of the primary set of databases or select a subset of dat

What do you understand by user-centred design, Problem: (a) What do yo...

Problem: (a) What do you understand by user-centred design and why is it important? (b) Explain how Prototyping and the Participatory Design approach are useful to the d

Define a class diagram with example, Q. Define a Class diagram with example...

Q. Define a Class diagram with example? Class diagram: A class diagram in the UML (Unified Modelling Language) is a type of static structure diagram that describes the struct

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