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

Software myth, how does software myth affects software process

how does software myth affects software process

What is checksheet, What is Checksheet? Ans) A checksheet is the form us...

What is Checksheet? Ans) A checksheet is the form used to record data as it is gathered.

What are the benefits of modular design, What are the benefits of modular d...

What are the benefits of modular design? Changes made during testing and maintenance becomes manageable and they do not affect other modules.

What is structure chart, Structure chart:  A structure chart is a top-down...

Structure chart:  A structure chart is a top-down modular design tool, constructed of squares representing the dissimilar modules in the system, and lines that connect them. The l

Explain the test specification and test suite, Explain the Test Specificati...

Explain the Test Specification and Test Suite: - This is a document verifying the test approach for a software feature or combination or features and the inputs, predicted resu

What is code coverage and code inspection, What is Code Coverage and Code I...

What is Code Coverage and Code Inspection - This is an analysis method which verifies which parts of the software have already been covered by the test case suite and which are

What is change management, What is Change management? Software systems ...

What is Change management? Software systems are subject to continual change requests; From users; From developers; From market forces. Change management is

Define object and class associations, Q. Define Object and class associatio...

Q. Define Object and class associations? Object/class associations:- Objects/classes interact with each other. Multiplicity defines how many instances of one object/class can

Incomplete wrong Lisp code with error, Check mail from for assignment. ...

Check mail from for assignment. Are you kidding with me. What kind of code you sent. Did you even execute before sending. It has error. Either do it as per the assignment or

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