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

Class diagram, Explain the compare of class diagram

Explain the compare of class diagram

What is failure, The inability of a system or system component to perform a...

The inability of a system or system component to perform a needed function within specified limits.

DAO java, inside a button click can we put following code... Account a = n...

inside a button click can we put following code... Account a = new Account(); a.setAccNo(Integer.parseInt(txtAccNo.getText())); a.setDepositamt(Float.parseFloat(tx

Intersection in java, public static void mergesort(int x[],int y[])

public static void mergesort(int x[],int y[])

Explain process, Explain Process? The work effort that makes a product. ...

Explain Process? The work effort that makes a product. This contains efforts of people and equipment guided by policies, standards, and procedures.

Explain the process specification, Define Process Specification . Proces...

Define Process Specification . Process Specification is used to clarify all flow model processes that appear at the final level of refinement. Check & Convert pressure

What is validation represent, What is Validation represent? Validation ...

What is Validation represent? Validation means a set of deeds that ensure that the software that has been built to satisfy the customer requirements.

Explain the types of software testing, Explain the types of software testin...

Explain the types of software testing. Unit testing Integration testing System testing User-acceptance testing End-to-End testing Exception testing

Define software reliability, Define software reliability. What is the diffe...

Define software reliability. What is the difference between hardware & software reliability? Ans: Software reliability is the possibility that software will provide failure-f

Connectivity Issue in Asp.net, Sir, our project is not connecting with SQL ...

Sir, our project is not connecting with SQL server. How to insert own created database in ASP.net

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