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

Function module can be called from a transaction screen, A function module ...

A function module can be called from a transaction screen outside an ABAP/4 program. Yes, a function module called from transaction screen.

Explain document interchange standards, Document interchange standards ...

Document interchange standards Interchange standards permit electronic documents to be exchanged mailed, etc.  Documents are produced using dissimilar systems and on differe

Mobile help dack mangmant system, hello there!! I have above subject that I...

hello there!! I have above subject that I have final project and also I required with program

Define the system requirements, What is meant by System Requirements? ...

What is meant by System Requirements? Place the system services and constraints in detail. Serves as a link between the system purchaser & the system developer.

Explain acceptance testing, Testing conducted to verify whether or not a sy...

Testing conducted to verify whether or not a system satisfies its acceptance criteria and to enable the customer to verify whether or not to accept the system. Contrast with testin

What is requirements definition description, What is Requirements Definitio...

What is Requirements Definition Description Output of requirements of engineering process is Requirements Definition Description (RDD). Requirements engineering can be defined

Explain error, A discrepancy among a computed, observed, or calculated valu...

A discrepancy among a computed, observed, or calculated value or condition and the true, specified, or theoretically correct value or condition; and

Decision table, how to draw decosion table? questions based on decision tab...

how to draw decosion table? questions based on decision table.

What is software testing, What is software testing? The testing process...

What is software testing? The testing process focuses on the logical internals of the software, ensuring that all statements have been tested, and on the functional externals,

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