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 what is meant by the term encapsulation, Question: (a)  Explain...

Question: (a)  Explain the difference between a link and an association. Use a simple example to illustrate your answer. (b)  Briefly describe the importance of CRC cards in

Explain the test specification and test suite, Explain the Test Specificati...

Explain the Test Specification and Test Suite: - This is a document verifying the test approach for a software feature or combination or features and the inputs, predicted resu

What are the tools mainly used for information gathering, What are the tool...

What are the tools are mainly used for information gathering 1.  Record review: A review of recorded documents of organisation is performed.Manuals procedures, forms and book

Evaluate the agresti-card-glass metrics, Question 1: We have a small sy...

Question 1: We have a small system with a call graph as given below. Consider that each vertex is a module. All modules are new (i.e., n = n0) Also consider that the number of

Threads, what resources are used when a thread is created ?

what resources are used when a thread is created ?

What is v- diagram (model), What is V- Diagram (model)? Ans) A diagram t...

What is V- Diagram (model)? Ans) A diagram that imagine the order of testing activities and their corresponding phases of growth

What are the elements of design model, What are the elements of design mode...

What are the elements of design model? i. Data design ii. Architectural design iii. Interface design iv. Component-level design

Discuss in details about functional modeling, Discuss in details about Func...

Discuss in details about Functional Modeling. This model describes the computations that take part within a system. This model is helpful when the conversion from the inp

Layered software architecture, iii. Layered software architectures can be ...

iii. Layered software architectures can be used to reduce coupling between the functions of a system that are closer to the machine and those that are closer to user needs. Why is

What are the general activities in design process, What are the general act...

What are the general activities in design process? i. System structuring - The system is separated into principle subsystems components and communications among these subsystem

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