Upgrade to remove ads
ISYS 601 Chapter 7 Quiz
Terms in this set (22)
Object created from the Exception Class or one of its subclasses like FormatException and OverflowException
Represent errors that have occurred and contain information about those errors
Catching any exceptions that might be thrown and handle them. As simple as notifying users they must enter valid data. More complex as notifying users that the application is being shut down.
All exceptions of the Exception Class. EX = FormatException in the Exception Class
Subclass of the Exception Class. Specific type of Exception that occurs when a value of one data type can't be converted to another data type. Thrown by the To methods of the Convert class or the Parse method of any class.
Subclass of the Exception Class. Exception that occurs when during an arithmetic, casting, or conversion operations. Includes OverflowException and DivideByZeroException.
Exception that occurs when the result of an arithmetic, casting, or conversion operation is too large for the receiving variable.
Exception that occurs if an application attempts to divide a number by zero
Structured Exception Handling
Preventing your applications from crashing due to runtime errors by writing code that handles exceptions when they occur. More detective and corrective in nature than preventative.
A way to catch and handle exceptions. Includes a try block first and then a catch block. This is an example of an exception handler.
Code this around the statement(s) that may throw an exception.
Coded immediately after the Try Block. Contains the statements that will be executed if an exception is thrown by a statement in the try block.
Code that catches exceptions and handles them in a way that allows the user to know an exception has occurred and how to fix it. Example: Try-Catch Statement
Property for an exception. Gets a message that briefly describes the current exception. Used in the default catch statement that catches any exception that falls through the cracks.
Property for an exception. Gets a string that lists the methods that were called before the exception occurred. Methods are listed in reverse order. Used only for programmers because it would severely confuse the user.
Method for all exceptions. Gets the type of the current exception. Used in the default catch statement that catches any exception that falls through the cracks.
Use the code word "throw" and the name of the exception class you want to create the exception from. This is the telling the program to generate an exception statement instead of catching and handling the exceptions automatically thrown.
Checks to make sure the data entered by the user is valid. When the entry is invalid, an error message is shown and the user is given another chance to enter valid data.
Data validation method. Checks to make sure the user has entered the data into a text box. It won't allow a blank text box.
Data validation method. Checks to make sure the value entered by the user is a decimal value.
Data validation method. Checks to make sure the value entered by the user is within a range specified by the minimum maximum parameters.
Data Validation method. Combines IsPresent, IsDecimal, and IsWithinRange to validate multiple entries on a form. Allows you to code the validation for an entire form in one location.
YOU MIGHT ALSO LIKE...
Accounting Information Systems
COP2800 Final Study Guide
Computer Science Keywords for Final
OTHER SETS BY THIS CREATOR
ISYS 654 Exam 1
SAP Test 1 - MINE
Speech 1315 Exam 1 (Chapters 1-9)
ISYS 620 Chapter 10