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

Determine the repeatable level of maturity model, Level 2 (Repeatable) ...

Level 2 (Repeatable) Organisation satisfies all the requirements of level-1. At this stage, basic project management policies and associated procedures are established. Insti

Define software measurement, Define software measurement. A software me...

Define software measurement. A software measurement is a method or method that applies software calculates to a class of software engineering objects to attain a predefined goa

Explain data accuracy, Data accuracy Don't collect redundant data  T...

Data accuracy Don't collect redundant data  The questions to be answered should be decided in advance and the needed data identified. Tell people why the data is being co

Design black box test suits for a function, Q. Design black box test suits ...

Q. Design black box test suits for a function that checks whether a character or string upto ten characters in a palindrome? Ans Following may be the test cases: - Try wit

Contrast between project logic evaluation and networking, QUESTION (a) ...

QUESTION (a) Compare and contrast between Project logic evaluation (PLE), Networking and Scheduling (b) Discuss how the true cost of defects can often be higher than the ini

Important factors related to library storage operation, Important factors r...

Important factors related to library storage operation: It is essential to consider some important factors related to library and information storage and retrieval operations

Explain dynamic testing, Verification or validation performed which impleme...

Verification or validation performed which implements the system's code.

Discuss in detail about structural modeling, Discuss in detail about Struct...

Discuss in detail about Structural Modeling. Structural model includes a detail refinement of ERD, data flow model and control flow model. Creating an ERD. For example

What is software re-engineering, What is software re-engineering? No fu...

What is software re-engineering? No functionality is added to the system. Rather than, the system is modified to compose it easier to understand and change. System re-engineeri

What is the use of cmm, What is the use of CMM? Capability Maturity Mod...

What is the use of CMM? Capability Maturity Model is used in assessing how well an organisation's processes permit to complete and manage latest software projects.

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