CIS 510 Week 2 Assignment 1

profilecomputerscience
error_handling_in_an_activity_diagram.docx

Running head: ERROR HANDLING IN AN ACTIVITY DIAGRAM

ERROR HANDLING IN AN ACTIVITY DIAGRAM

Error Handling in an Activity Diagram

Student’s Name:

Professor’s Name:

Course:

Date:

Introduction

Error Handling is astonishingly one of the most overlooked and most important topics for system developers and programmers which ever programming language is being utilized. The process of error handling involves the anticipation, detection, as well as the resolution of programming application errors and communication loopholes. In error handling, there are many available specialized programs that can be utilized to handle errors (Engels, 2006).

The specialized programs are used to forestall errors and whenever possible recover from those errors as soon as they occur without the need of terminating the application. In the case that an application fails due to these errors, the specialized programs can be utilized to save the errors in a log file. The activity diagram above shows two types of error handling pathways which are namely; I/O Exception Error and Connection Error.

I/O Exception Error

I/O exception is an error that occurs when there is a problem with the input and output operation, it is mainly caused by an application or program attempting to read from a file that does not exist or when a file has an invalid name. A good example in this case includes the operation of picking an item from stock that fails. The failure may be caused by a network problem or otherwise a database failure. An appropriate way of handling this error includes throwing it to a log file.

Connection Error

A connection error is mainly caused by a network problem. A connection error can also be caused by application failures which include database failures. A connection error in this case happens when the application fails to find the location with sufficient stock, this can happen due to say the location having an invalid name. This error can also be handled by throwing it to a log file.

Overview of Other Possible Errors

During system development, there are various types of errors that can occur. Syntax errors are errors that happen due to typographical mistakes or rather improper use of characters. These errors can be handled through the process of rigorous proofreading. Logic errors also referred to as bugs are other type of errors, these errors occur when the code that is executed does not produce the desired or expected results (Engels, 2006).

Last but not least, run time errors are errors that take place when executing a program. These errors usually happen because of invalid input data or adverse system errors. A good example of a run-time error is when the system lacks enough memory to run an application or there is a memory conflict with another program. Run-time errors can be minimized through the use of error handling programs. They can also be minimized through vigilance of the network and server administration.

References

Engels, G., Pletat, U., Ehrich, H.-D., & Universität Osnabrück. (2006). Handling errors and exceptions in the algebraic specification of data types. Osnabrück: Fachbereich Mathematik, Universität Osnabruc̈k.

Roy, D. P., & Chakraborty, B. P. (January 01, 2014). Case-Based Reasoning and Some Typical Applications.