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

Explain about the software testing strategies, Explain about the software t...

Explain about the software testing strategies. A method approach to software testing. Verification and Validation. Verification refers to the set of activities tha

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

Q. What are the advantages of using testing tools? Ans: The merits of testing tools are They improve the productivity and quality of software development. Help in

Structure analysis, what tools are used for analysis of any software system...

what tools are used for analysis of any software system?

What is random testing, What is Random testing? Random testing is also ...

What is Random testing? Random testing is also referred as adhoc testing. As the tester can give the out of coverage data and the stability of an application is checked, whethe

Software licesnse, what are the main characteristics of software lease

what are the main characteristics of software lease

Importance of a document type definition in xml, Question: (a) Describe...

Question: (a) Describe the purpose and importance of a Document Type Definition in XML. (b) Describe the difference between PCDATA and CDATA with respect to a DTD. (c)

Infomation systems, How can a company improve quality of business informati...

How can a company improve quality of business information?

What are the elements of computer based systems, What are the elements of C...

What are the elements of Computer based Systems? Software: Data structures, Computer programs, & related document Hardware: Electronic devices, inter connectivity devices, E

Define data objects and relationship, Define Data objects, attributes & rel...

Define Data objects, attributes & relationship. Data object: Representation of any collective  information that must be understood by software. It can be any external entity.

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