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

Inmagic plus- microcomputer based software package, INMAGIC Plus: INMA...

INMAGIC Plus: INMAGIC Plus is a microcomputer- based software package designed to build, maintain and use textual databases including bibliographic databases. As a generalised

What are the fundamental activities of a software process, What are the fun...

What are the fundamental activities of a software process? Specification Validation Design and implementation Evolution

Software risks, risks and types of software risks

risks and types of software risks

Explain silktest and its methodology behind silk test, Describe SilkTest? W...

Describe SilkTest? What is the methodology behind Silk test? SilkTest is a software testing automation tool which is developed by Segue Software, Inc. Methodology behind thi

The majority charge carriers in p-type semiconductor, The majority charge c...

The majority charge carriers in p-type semiconductor are?? The majority charge carriers are  holes.

Text retrieval packages - softare packages, Text Retrieval Packages: T...

Text Retrieval Packages: Text retrieval comprises storage and subsequent retrieval of rat girds, essentially textual rather than numerical, tabular or graphical. Although, eac

Performing validation testing, What are the conditions exists after perform...

What are the conditions exists after performing validation testing? After performing the validation testing there exists two conditions.  The function or performance charact

How to ensure the smooth implementation of system, Probelm: (a) Compare...

Probelm: (a) Compare Supply Chain Management (SCM) and Customer Relationship Management (CRM) . How are they similar? How are they different? Your answer should show the differ

Explain the meaning of the three-tier architecture, QUESTION (a) Explai...

QUESTION (a) Explain the meaning of the three-tier architecture (b) An Internet banking system can be said to be based on a three-tier architecture. Illustrate this with a d

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