Exception wrapping system
AssigneeHome Box Office, Inc.
InventorsPatrick Finnigan, Brendan Joseph Clark, Brandon C. Furtwangler, Steven N. Furtwangler
Life of this patent
Estimating the term…
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.
Claims20
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.
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;
- or
- determining 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, and
- 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.
One or more machine-readable storage media having machine-executable instructions, which when executed perform operations, the operations 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 associated with the wrapped exception instance type;
- outputting the dialog;
- and
- taking action based upon user interaction with the dialog.
Dependencies are inferred from the claim text.