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

Evaluate the usefulness of roce, Present an evaluation of the current perfo...

Present an evaluation of the current performance of your chosen company using ROCE, RI, EVA and SVA.  (All figures employed should be up to date , clearly explained / justified an

What are the two levels of testing, What are the two levels of testing? ...

What are the two levels of testing? i. Component testing Individual works are tested. Tests are derived from developer's experience. ii. System Testing The group o

Facilitated application specification technique, Q. Facilitated Application...

Q. Facilitated Application Specification Technique? A team oriented approach is developed for needs gathering and is called facilitated application specification Techniques FAS

What is code review, A meeting at which software code is presented to proje...

A meeting at which software code is presented to project personnel, users,  managers,  customers, or other interested parties for approval or comment. Contrast with code audit, cod

Explain information flow index, Q. Explain Information Flow index? Inf...

Q. Explain Information Flow index? Information Flow index Information flow metrics are practical to the components of a system design. For any component A We are able to defi

List the principles of a software design, List the principles of a software...

List the principles of a software design. i. The design process should not suffer from "tunnel vision". ii. The design should be traceable to the analysis model. iii. The

#title.help with labs for Rabbit 4000, I need help two thing 1-understand h...

I need help two thing 1-understand how can I programme rabbit 4000 2- do labs set for Rabbit 4000

Explain test data generators - testing tools, Q. Explain Test data generato...

Q. Explain Test data generators - testing tools? Test data generators: this is a hard one and at lease for the present is one for which no general solution exists. One of the

What are the types of metrics, What are the types of metrics? Direct m...

What are the types of metrics? Direct metrics - It refers to right away measurable attributes. Example - Lines of code, execution speed. Indirect metrics - It refers

What is software measure, What is software measure? A software measure ...

What is software measure? A software measure is a mapping from a set of objects in the software engineering world information a set of mathematical construct like numbers or ve

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