Exception wrapping system
First Claim
Patent Images
1. A system comprising:
- wrapping code coupled to an error handler of a routine, in which the routine produces an error and the wrapping code wraps the error with relevant information to provide a wrapped exception instance, including to use an exception type hierarchy to preserve information in the wrapped exception instance including an exception type; and
an exception manager that receives the wrapped exception instance and determines one or more actions to take based upon the exception type of the wrapped exception instance, wherein the exception manager takes the one or more actions, including to present an interactive dialog associated with the exception type, and wherein the dialog includes an interactive input mechanism, which when selected, results in the exception manager taking further action to restart a program that contains the routine.
1 Assignment
0 Petitions
Accused Products
Abstract
The described technology is directed towards handling errors in an application program that allows for a taxonomy and precedence order of errors. Exception wrapping includes preserving relevant information with an exception, and consolidates a series of errors into a single dominant exception instance that is handled appropriately depending on the exception type. Also described is a centralized exception manager that outputs an interactive dialog based upon the exception type, and takes a recovery action based upon user interaction with the dialog.
-
Citations
26 Claims
-
1. A system comprising:
-
wrapping code coupled to an error handler of a routine, in which the routine produces an error and the wrapping code wraps the error with relevant information to provide a wrapped exception instance, including to use an exception type hierarchy to preserve information in the wrapped exception instance including an exception type; and an exception manager that receives the wrapped exception instance and determines one or more actions to take based upon the exception type of the wrapped exception instance, wherein the exception manager takes the one or more actions, including to present an interactive dialog associated with the exception type, and wherein the dialog includes an interactive input mechanism, which when selected, results in the exception manager taking further action to restart a program that contains the routine. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. A method comprising:
-
receiving a call related to a program error, in which the call is associated with a passed native error instance or the call is associated with a passed exception instance and a calling exception type; determining if the call corresponds to a passed exception instance, and if not, creating a new exception instance of the calling exception type to represent the program exception and preserving information corresponding to any data of the passed native error instance in the new exception instance;
ordetermining if the call corresponds to a passed exception instance, and if so, determining if the calling exception type is an ancestor type of the passed exception instance type, a) if not, creating a new instance of the calling exception type to represent the program exception, or b) if so, preserving the passed exception instance to represent the program exception; receiving the exception instance at an exception manager; outputting a dialog based upon the received exception instance type, and taking a recovery action based upon the received exception instance type. - View Dependent Claims (11, 12, 13, 14)
-
-
15. One or more machine-readable storage media having machine-executable instructions, which when executed perform steps, comprising:
-
determining a wrapped exception type based upon a hierarchy, including using a wrapped exception type that applies to an error thrown while executing a program; routing the wrapped exception instance to an exception manager; determining a dialog and associated with the wrapped exception instance type; outputting the dialog; and taking action based upon user interaction with the dialog, including at least one of;
restarting the program, navigating to a location in the program, navigating back to a prior location, or retrying an operation that caused the error. - View Dependent Claims (16)
-
-
17. A system comprising:
-
wrapping code coupled to an error handler of a routine, in which the routine produces an error and the wrapping code wraps the error with relevant information to provide a wrapped exception instance, including to use an exception type hierarchy to preserve information in the wrapped exception instance including an exception type; and an exception manager that receives the wrapped exception instance and determines one or more actions to take based upon the exception type of the wrapped exception instance, wherein the exception manager takes the one or more actions, including to present an interactive dialog associated with the exception type and wherein the dialog includes an interactive input mechanism, which when selected, results in the exception manager taking further action to navigate back to a prior location, or retry an operation that caused the error. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25, 26)
-
Specification