Throwing one selected representative exception among aggregated multiple exceptions of same root cause received from concurrent tasks and discarding the rest
First Claim
1. A method for selecting an exception to raise out of many exceptions comprising the steps of:
- receiving multiple exceptions that occurred on concurrent worker tasks;
aggregating the multiple exceptions;
selecting one particular exception of the aggregated multiple exceptions that represents the multiple exceptions because the multiple exceptions have a same root cause;
throwing the selected one particular exception; and
discarding the multiple exceptions other than the selected one particular exception.
2 Assignments
0 Petitions
Accused Products
Abstract
Various technologies and techniques are disclosed for providing concurrent exception handling. When one or more exceptions are received from concurrent workers, one or more exception handler functions are supplied. For each respective exception in the exception results, determine if the respective exception is one of a kind of exceptions handled by the one or more exception handler functions. If the respective exception is one of a kind handled by the exception handler functions, then run a particular handler of the exception handler functions and mark the respective exception as handled. Any unhandled exceptions are then processed appropriately. In one implementation, a collection of input data is processed to produce a collection of output results, with the exceptions being interleaved with other output results. In another implementation, a particular exception is selected that represents the multiple exceptions. The selected one particular exception is then thrown.
27 Citations
16 Claims
-
1. A method for selecting an exception to raise out of many exceptions comprising the steps of:
-
receiving multiple exceptions that occurred on concurrent worker tasks; aggregating the multiple exceptions; selecting one particular exception of the aggregated multiple exceptions that represents the multiple exceptions because the multiple exceptions have a same root cause; throwing the selected one particular exception; and discarding the multiple exceptions other than the selected one particular exception. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A system for selecting an exception to raise out of many exceptions comprising the steps of:
-
first logic configured to receive multiple exceptions occurring on concurrent worker tasks and to produce an aggregation of the multiple exceptions; second logic configured to select one particular exception from the multiple exceptions, the one particular exception being selected as representing the multiple exceptions because the second logic analyzed the multiple exceptions and determined the multiple exceptions to have a same root cause; and a computing device that operates the first logic and the second logic; wherein the selected one particular exception is thrown and the multiple exceptions other than the selected one particular exception are discarded. - View Dependent Claims (8, 9, 10, 11)
-
-
12. A computer-readable medium having computer-executable instructions for causing a computer to perform steps comprising:
-
receiving multiple exceptions that occurred on concurrent worker tasks; aggregating the multiple exceptions; selecting one particular exception of the aggregated multiple exceptions that represents the multiple exceptions because the multiple exceptions have a same root cause; throwing the selected one particular exception; and discarding the multiple exceptions other than the selected one particular exception. - View Dependent Claims (13, 14, 15, 16)
-
Specification