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 is software requirement specification, What is Software requirement Sp...

What is Software requirement Specification (SRS)? Software Requirement Specification Document is the output of requirement examines stage of the software development life cycle

Explain the traces debugging method, Q. Explain the Traces debugging method...

Q. Explain the Traces debugging method? Traces:-Printout contains merely certain memory and register contents and printing is conditional on some event occurring. Typical condi

What are the objectives of analysis modelling, What are the objectives of A...

What are the objectives of Analysis modelling? i. To explain what the customer requires. ii. To establish a basis for the creation of software design. iii. To devise a se

Calculates function point value for a project, Q Calculates function point ...

Q Calculates function point value for a project with the following domain characteristics: No. of I/P = 30 No. of O/P = 62 No. of user Inquiries = 24 No. of fil

Illustrate about the managed level of maturity model, Level 4 (Managed) ...

Level 4 (Managed) Organisation satisfies all the requirements of level-3. At this level quantitative standards are set for software processes andproducts. Project analysis is

Explain test bed, 1) An environment that having the integral hardware, inst...

1) An environment that having the integral hardware, instrumentation, simulators, software tools, and other support elements required to conduct a test of a logically or physically

What is the use of a data flow diagram, What is the use of a data flow diag...

What is the use of a data flow diagram? A data flow diagram is used to represent the functional view of an application domain. It represents all the significant business proces

Compare rmi and corba from a middleware perspective, QUESTION - RMI (a...

QUESTION - RMI (a) Figure illustrates an RMI communication.                                      Describe the role of each component in the RMI. (b) Explain the ter

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