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

What are the common approaches in debugging, What are the common approaches...

What are the common approaches in debugging? Brute force method: The memory dumps and run-time tracks are explained and program with write statements is loaded to get clues to

Determine the characteristics of software, What are the characteristics of ...

What are the characteristics of Software? Software is engineered or modified; it is not manufactured in the traditional sense. Software is free of wear out. Though the

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

What is requirement engineering, What is requirement engineering? Requ...

What is requirement engineering? Requirement engineering is the process of establishing the services that the customer needs from the system and the constraints under which it

Functional requirement for a library management system, Write down the func...

Write down the functional requirement for a Library management system. The user should capable to search either all of the primary set of databases or select a subset of dat

Define verification and validation, Define Verification &Validation. V...

Define Verification &Validation. Verification: The set of activities that make sure that software correctly executes a specific function. Validation: The set of activiti

Relationship between people and effort, Ask question #Minimumreal time exam...

Ask question #Minimumreal time example 100 words accepted#

Show the reasons of current software crisis, Q. Show the Reasons of current...

Q. Show the Reasons of current software crisis? larger problem sizes, increasing skill shortage, and lack of adequate training in software engineering,

Describe the types of structure charts, Q. Describe the Types of Structure ...

Q. Describe the Types of Structure Charts? Transaction structure it control module calls subordinate modules each of which handles a particular transaction Many afferent

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