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 system engineering, What is System Engineering? System Engineer...

What is System Engineering? System Engineering means designing, executing, deploying and operating systems which contain hardware, software and people.

What is dynamic analysis, The process of evaluating a program based on impl...

The process of evaluating a program based on implementation of that program. Dynamic analysis approaches rely on implementing a piece of software with selected test data.

Illustrate basic COCOMO model, Q. Illustrate Basic COCOMO model? Basic ...

Q. Illustrate Basic COCOMO model? Basic COCOMO model:- It provides an order of magnitude of cost. This model utilizes estimated size of software project and the type of softwar

Explain system testing, The process of testing an integrated hardware and s...

The process of testing an integrated hardware and software system to determine that the system meets its described requirements. Such testing might be conducted in both the develop

How the case tools are classified, How the CASE tools are classified? C...

How the CASE tools are classified? CASE tools can be classified by A. By function or use B. By user type(e.g. manager,tester),or C. By stage in software engineering pr

Scenario easy travel singapore ets, select alife cycle model that you would...

select alife cycle model that you would follow during the devolpment of the easy travil singapore system. give an outline description of thise life cycle and justify your chice of

What is the work product of software design process, What is the work produ...

What is the work product of software design process and who does this? A design model that encompasses architectural, interface, component level and their representations is th

What is test schedule, The test schedule is a schedule that signifies all t...

The test schedule is a schedule that signifies all tasks needed for a successful testing effort, a schedule of all test activities and resource needs.

Which phase is not available in software life cycle, Which phase is not ava...

Which phase is not available in software life cycle? Abstraction is the only phase which in not available in software life cycle

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