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 important characteristics of a dmz, Question: a) A firewall...

Question: a) A firewall will be classified according to which layer of the OSI model the protection is at. Using this classification, explain the different types of firewalls.

Define metrics, Define metrics. Metrics is explained as the degree to w...

Define metrics. Metrics is explained as the degree to which a system component, or process possesses a given attribute.

Explain depth of conditional nesting, Depth of conditional nesting Thi...

Depth of conditional nesting This is a measure of the depth of nesting of if-statements in a program. Deeply nested if statements are hard to understand and are potentially er

What is volume testing, Testing designed to challenge a system's capability...

Testing designed to challenge a system's capability to handle the maximum amount of data over a period of time. This type of testing also classify a system's ability to handle over

List the guidelines for data design, List the guidelines for data design. ...

List the guidelines for data design. i. Apply systematic analysis on data. ii. Determine data structures and related operations. iii. Establish data dictionary. iv. Us

Write short notes on empirical estimation models, Write short notes on empi...

Write short notes on empirical estimation models. Estimation model for computer software uses empirically derived formulas to assume effort as a function of line of codes (LOC)

Determine the business process engineering tools, What are business process...

What are business process engineering tools? By modelling the strategic information requirements of an organization, business process engineering tools provide a "meta-model" f

Explain sci, What is SCI? Software Configuration Item is information th...

What is SCI? Software Configuration Item is information that is carried as part of the software engineering process.

Object oriented concepts used in software engineering, Explain various Obje...

Explain various Object Oriented concepts used in Software Engineering. The concepts of Object Oriented concepts used in Softwar Engineering: Object Class:- Enc

What are the testing strategies for conventional software, What are the var...

What are the various testing strategies for conventional software? i. Unit testing ii. Integration testing. iii. Validation testing. iv. System testing.

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