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

Give the procedure of the delphi method, Give the procedure of the Delphi m...

Give the procedure of the Delphi method. 1. The co-ordinator shows a specification and estimation form to each expert. 2. Co-ordinator calls a group meeting in which the exp

What specific languages can be used in srs, What specific languages can be ...

What specific languages can be used in SRS? Requirement specification necessitates the use of some order language. The language should support the desired qualities of the SRS-

State the system engineering hierarchy, State the System Engineering Hierar...

State the System Engineering Hierarchy The world view is made up  of a set of domains (Di),which can either be a system or a system of systems. WV = {D1,D2,D3,...........,Dn

What is data validity, Data validity is the reasonableness and correctness ...

Data validity is the reasonableness and correctness of data.

Flow chart, desidn a complete flow chart diagram ,which ask the user to inp...

desidn a complete flow chart diagram ,which ask the user to input the rate of diesel and quantity of diesel consumed.after calculate the total amount of diesel consumed and display

What is control chart, What is Control Chart? Ans) A statistical method ...

What is Control Chart? Ans) A statistical method for distinguishing among common and special cause variation exhibited by processes.

Question, why are older data models are being replaced by new data models

why are older data models are being replaced by new data models

Explain critical design review, Explain critical design review The purp...

Explain critical design review The purpose of critical design review is to make sure that the detailed design satisfies the specifications laid down during system design. The

What is procedure, What is Procedure? Ans) The step-by-step method follo...

What is Procedure? Ans) The step-by-step method followed to make sure that standards are met.

What is syntax, 1) The relationship between characters or groups of charact...

1) The relationship between characters or groups of characters independent of their meanings or the manner of their interpretation and use; 2) The formation of expressions in a

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