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

State the coding standards, State the Coding standards Coding standar...

State the Coding standards Coding standards normally give the guidelines about following: i)  Name of the module ii)  External and Internal documentation of source code

Define white box testing, Define White box testing White box testing ...

Define White box testing White box testing method deals with the internal logic and structure of the code. White box testing also called as glass, structural, branches, paths

What is pure and impure interpreter, what is interpreter explain pure and i...

what is interpreter explain pure and impure interpretion

What can be main reasons for a bug not being to reproduce, What can be main...

What can be main reasons for a bug not being to reproduce? What must be done if such a bug is found? A bug can't be reproduced for below reasons: 1. Low memory. 2. Things

What are the characteristics of software, What are the characteristics of S...

What are the characteristics of Software Software is engineered or formed; it is not manufactured in the classical sense. Software doesn't wear out. Although the indu

Describe continual integration, Question 1 What is SSAD? Explain in detail...

Question 1 What is SSAD? Explain in detail Question 2 Explain any three limitations of the agile process Question 3 Describe continual integration Question

Class diagram, Explain the compare of class diagram

Explain the compare of class diagram

Define effector process, Define effector process? The effector process...

Define effector process? The effector process is termed as a process that verifies itself. The  effector process exists in specific criteria.

HART protocol DD development, I am working on DD development project and I...

I am working on DD development project and I am using 475 field communicator for testing DD. While development of DD, I tested DD with SDC 625 PC application using HART modem. I h

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