System and method for persisting error information in a command line environment
AssigneeMicrosoft Corporation
InventorsJeffrey P. Snover, James W. Truher, Bruce G. Payette
Life of this patent
Estimating the term…
Abstract
In a command line environment, an error object is used to store information about each occurrence of an error during processing of a command-line instruction. In an object-based command line environment, each command in a complex command-line instruction stores sufficient information in the error object to completely describe the error. That information may be later used either by subsequent commands or in conjunction with another command-line instruction to further process the unprocessed resources.
Claims15
Computer-readable storage media having computer executable instructions, the instructions comprising:
- receiving a command-line instruction containing a command configured to perform an action involving resources;
- executing the command;
- and
- in the event of an error while executing the command, storing information about the error in an object for subsequent use by another command, the information including an identification of any resources unprocessed due to the error, an identification of a severity of the error, and an identification of any resources input to the command for execution.
A computer-implemented method for executing commands in a command-line environment, comprising:
- receiving a command-line instruction containing a plurality of commands, each command been configured to perform an action involving resources;
- parsing the command-line instruction to identify each command in the plurality of commands;
- executing a first identified command;
- in the event of an error while executing the first identified command, storing information about the error in an error object for subsequent use by another command, the information including an instance of any resource unprocessed by the first identified command due to the error;
- wherein the error object further comprises an identification of a severity of the error;
- and
- wherein the error object further comprises an identification of any resources input to the first identified command.
Computer-readable storage media encoded with a data structure storing information for subsequent use by a subsequent command, the data structure comprising:
- a first field identifying a command in a command-line environment, the command being configured to perform an action on resources;
- a second field identifying an error that occurred while processing the command;
- a third field identifying resources that were unprocessed by the command due to the occurrence of the error;
- a fourth field identifying the severity of the error;
- and
- a fifth field identifying resources input to the command for processing by the command,
- and effective to enable the subsequent command to process at least one of the resources that were unprocessed by the command due to the occurrence of the error.
Computer-readable storage media encoded with a first data structure and a second data structure, the first data structure or the second data structure storing information for subsequent use by a subsequent command,
- the first data structure comprising:
- a first field identifying a command in a command-line environment, the command being configured to perform an action on resources;
- a second field identifying an error that occurred while processing the command;
- and
- a third field identifying resources that were unprocessed by the command due to the occurrence of the error, the second data structure comprising:
- a first field that identifies resources input to the command for processing and instances of the resources input to the command;
- and
- a second field that identifies results of processing the command, and
- the first data structure or the second data structure effective to enable the subsequent command to process at least one of the resources that were unprocessed by the command due to the occurrence of the error.
Dependencies are inferred from the claim text.