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 fault-based testing, 1. Testing that employs a test data selection ...

1. Testing that employs a test data selection method designed to obtain test data capable of demonstrating the absence of a set of pre-specified faults, typically, frequently happe

COCOMO model, What is the correct order in which a software project manager...

What is the correct order in which a software project manager estimates various project parameters while using COCOMO?

Discuss spiral model for software life cycle, Discuss spiral model for soft...

Discuss spiral model for software life cycle SPIRAL MODEL The spiral model is classified into number of frame works. These frameworks are represented by task regions.

What is user friendly software, A computer program is "user friendly", when...

A computer program is "user friendly", when it is designed with simple of use, as one of the primary purposes of its design.

Determine ways to handle concurrency, How to handle concurrency:  Mech...

How to handle concurrency:  Mechanisms Locks Semaphores Monitors Synchronized methods Methods Deadlock avoidance Verification Sim

Assignment, is there anyone can help with the assignment

is there anyone can help with the assignment

What is live variable, What is live variable A variable is live from it...

What is live variable A variable is live from its first to its last reference within a process.

What are the characteristics of software measurement, What are the characte...

What are the characteristics of software measurement? Measured property Object of measurement Source of measure Purpose measurement Context of measurement.

Introduction to software testing, Derive input space partitioning tests for...

Derive input space partitioning tests for the BoundedQueue class with the following signature:

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