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 in detail about functional modeling, Explain in detail about Functi...

Explain in detail about Functional Modeling. This model explains the computations that take place within a system. This model is useful when the transformation from the i

What do you understand by black box testing, Q. What do you understand by b...

Q. What do you understand by black box testing? Black Box Testing:-Black Box Testing is as well called behavioural testing focuses on the functional requirements of the softwar

Explain basic information flow model, Q. Explain basic information flow mod...

Q. Explain basic information flow model & it's more sophisticated versions? Ans. A Information flow metrics are useful to the components of a system design. For any compone

Describe requirement engineering, Define Requirement Engineering . Requi...

Define Requirement Engineering . Requirement Engineering is a process in which all of the activities required to maintain and create a system requirements document. The four

What are the objectives of analysis modeling, What are the objectives of An...

What are the objectives of Analysis modeling? i. To explain what the customer needs. ii. To establish a basis for the creation of software design. iii. To devise a set of

Explain the essential api concepts associated with j2me, Question: (a) ...

Question: (a) State and explain the essential API concepts associated with J2ME. (b) Connected Limited Device Configuration provides two types of application security; stat

Describe software development life cycle activities, Question: (a) Des...

Question: (a) Describe with a pictorial representation ISO 12207 software development life cycle activities. (b) A public library is considering the implementation of

what is qualification testing, Formal testing, usually conducted by the de...

Formal testing, usually conducted by the developer for the consumer, to demonstrate that the software meet its described requirements.

What is cmmi assessment, What is CMMI assessment? Examines the processe...

What is CMMI assessment? Examines the processes used in an organisation and assesses their maturity in every process area. Based on a 6-point scale: Not performed;

What is interface analysis, Checks the interfaces among program elements fo...

Checks the interfaces among program elements for consistency and adherence to predefined axioms or rules.

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