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

Defining intermediate representation, Problem 1 (i) Define the terms ...

Problem 1 (i) Define the terms Language Grammar Terminal symbols Non-Terminal symbols Alphabets >>Define sub parts (ii) Identify and write what these

what is a user interface, What is a user interface Ans) "User interfac...

What is a user interface Ans) "User interface" is the interface among a human user and a computer system. It access the passage of information among a human user and hardware or

What is cmmi assessment, What is CMMI assessment? Examines the processe...

What is CMMI assessment? Examines the processes used in an organisation and assesses their maturity in every process area. Based on a 6-point scale: Not performed;

Explain about mutation testing, Q. Explain about Mutation testing? Mut...

Q. Explain about Mutation testing? Mutation testing In mutation testing the software is initial tested by using an preliminary test suite built up from the different white bo

Why software change happens, Why software change occurs? Software chang...

Why software change occurs? Software change occurs because of the following reasons. New requirements appear when the software is used. The business atmosphere changes. E

Explain the software design, Define Software design. a. Software desig...

Define Software design. a. Software design is a step by step process through which requirements are translated into a "blue print" to construct the software. b. The blue pr

explain equivalence partitioning, Describe Equivalence Partitioning An...

Describe Equivalence Partitioning Ans) Input data of a program is separated into different categories so that test cases can be developed for every category of input data. The g

Draw a use case diagram, QUESTION (a) Draw a use case diagram (UCD) for...

QUESTION (a) Draw a use case diagram (UCD) for the given case study. For any one use case give a detail use case specification (b) Describe the different phases and workflow

Event management information system in uml, Company Universal Consulting is...

Company Universal Consulting is a large consulting firm that specializes in IT consulting services for the Healthcare industry. The company employs over 2,000 dedicated IT professi

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