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 design principles, Explain the design principles. The d...

Explain the design principles. The design process should not endure from tunnel vision. The design should be traceable to the analysis model. Design should not re

What are the various types of coupling, What are the various types of coupl...

What are the various types of coupling? i. Data coupling - The data coupling is likely by parameter passing or data interaction. ii. Control coupling - The modules share c

What are the various categories of software, What are the various categorie...

What are the various categories of software? Application software System software Engineering/Scientific software Web Applications Embedded software Artificial I

Object Oriented modelling, Perform analysis and design of the Vehicle Contr...

Perform analysis and design of the Vehicle Control Unit software using UML, and document all results obtained from each of the following tasks: 1. Requirements analysis including:

Software modelling, Enterprise software platforms are designed to simpl...

Enterprise software platforms are designed to simplify complex enterprise problems for the development, deployment, and maintenance of multi-tier enterprise solutions. In

What are the principles of testing, What are the principles of testing ...

What are the principles of testing Below are some of the principles of testing:  i)  All tests must be performed according to user requirements.  ii)  Planning of tests m

Defect amplification model with no review, How can we know about to divide ...

How can we know about to divide numbers from total error from which half passed through error and half passed to amplified and how to generate defect efficiency?

Importance of function point, Importance of function point:    This is ...

Importance of function point:    This is independent of the languages tools, or methodology used for execution. They can be estimated from requirement specification or desig

Software development system, Question: (a) Shneiderman's eight golden ...

Question: (a) Shneiderman's eight golden rules for dialogue design are (1) strive for consistency, (2) enable frequent users to use shortcuts, (3) give informative feedback,

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