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

Software quality and testing issues, Software quality and testing issues: ...

Software quality and testing issues: The aim of this assignment is to enable students to conduct an in-depth research on software quality and testing issues. Software Quality

Name the types of software system requirements, What are the types of Softw...

What are the types of Software system requirements ? Functional requirements: Services the system should be required. Non-functional requirements: Constraints on the servi

Transaction mapping, how transaction mapping is done.??clear me with a brie...

how transaction mapping is done.??clear me with a brief example

What is sci, What is SCI? Software Configuration Item is in order that ...

What is SCI? Software Configuration Item is in order that is carried as part of the software engineering process.

What are the types of traceability in software engineering, What are the va...

What are the various types of traceability in software engineering? i. Source traceability - These are basically the links from requirement to stakeholders who propose these

Oop, create a class rectangle

create a class rectangle

Show the importance of function point, Q. Show the Importance of function p...

Q. Show the Importance of function point? Importance of function point: - This is self-determining of the languages tools or methodology used for implementation. - They

Srs, Why is SRS document known as black box specification of a system

Why is SRS document known as black box specification of a system

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