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

What is the impact of "information era., Software Engineering 1. What i...

Software Engineering 1. What is the impact of "information era"? 2. Illustrate whether the linear sequential model of the software process is an accurate reflection of softw

Explain usability testing, Usability testing is testing of 'user-friendline...

Usability testing is testing of 'user-friendliness'. User interviews, surveys, video recording of user sessions and other methods can be used. Programmers and developers are usuall

Different type of testing tools, Different type of testing tools. (a) T...

Different type of testing tools. (a) Test Case Generators: (b) Capture/ Playback and Test harness tools: (c)  Coverage Analysis Tools: (d) Test Comparators e) Memor

Possible features of good data, Decision-making is the activity of deciding...

Decision-making is the activity of deciding appropriate action in given situations. Having useful information helps to reduce the uncertainty in decision-making. Information is

What are the tools mainly used for information gathering, What are the tool...

What are the tools are mainly used for information gathering 1.  Record review: A review of recorded documents of organisation is performed.Manuals procedures, forms and book

What is constant, What is Constant? In software or software testing, a c...

What is Constant? In software or software testing, a constant is a meaningful name that shown a number, or string, that does not alter. Constants are variables that remain the s

Define repeated inheritance, Repeated inheritance If a class inherits ...

Repeated inheritance If a class inherits more than once from the same class then it is referred to as repeated inheritance.

Solution manual, i need solution manual for software engineering |10 editio...

i need solution manual for software engineering |10 edition by ian Sommerville

Name the design phase of SDLC, Name the design phase of SDLC Generally,...

Name the design phase of SDLC Generally, design is performed in the below two steps: i)  Primary Design Phase: In this phase, system is designed at block level. Blocks are

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