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

Different phases of spiral model, Four Different Phases of spiral model are...

Four Different Phases of spiral model are: 1) Planning  2) Risk analysis 3) Development 4) Assessment

Problems that are faced during maintenance of software, Q. Discuss some of ...

Q. Discuss some of the problems that are faced during maintenance of software? - Habitually another person or group of persons working over the years in isolation from each oth

Explain equivalence class partitioning, Q. Explain Equivalence Class Partit...

Q. Explain Equivalence Class Partitioning ? Equivalence Class Partitioning : It is a method in black box testing. It is designed to reduce the number of test cases by dividing

Identify all activity dependencies in the project, Question: The activi...

Question: The activities in a project are given the PERT chart below: a) Identify all activity dependencies in the project. b) Clearly distinguish between critical

Write a short note on structure chart, Q. Write a short note on structure c...

Q. Write a short note on structure chart? Structure Chart is a most important program design technique and shows all components of code in a hierarchical format. Structure

Key process areas of capability maturity model (cmm), Key process areas of ...

Key process areas of Capability Maturity model (CMM) Effectiveness, Predictability and control of an organization's software processes are believed to get better as the organiz

What are the demerits of spiral model, What are the demerits of spiral mode...

What are the demerits of spiral model? i. It is depends on customer communication. If the communication is not suitable then the software product that gets developed will not r

What are the advantages of using testing tools, What are the advantages of ...

What are the advantages of using testing tools? The advantages of testing tools are: They get better the productivity and quality of software development. Help in i

Encryption-decryption algorithms and aes, Introduction The goal of the ...

Introduction The goal of the assignment is to build functionality on top of twitter that allows you to encrypt tweets to subgroups of your twitter Background Material R

What is software configuration management, What is Software configuration m...

What is Software configuration management? ans)Software Configuration Management (SCM) is the control and the recording of alter that are made to the software and documentation

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