Enum ErrorSource
- Namespace
- Albatross.CommandLine
- Assembly
- Albatross.CommandLine.dll
Identifies the pipeline stage that produced an error condition so the error handler can explain it appropriately. Every error raised during command execution is tagged with one of these sources.
public enum ErrorSource
Fields
CommandHandler = 0An exception escaped the command handler's execution.
CommandTaskCancellation = 3The command handler was cancelled (an OperationCanceledException), typically from Ctrl+C. Symbol carries the command key.
OptionHandler = 1An option handler (pre-action) reported an error — either it threw, or it recorded a validation failure. Symbol carries the option name.
OptionTaskCancellation = 4An async option handler (pre-action) was cancelled — typically by Ctrl+C, or by an OperationCanceledException of its own. Symbol carries the option name. Once one option handler is cancelled, the remaining ones do not run.
ServiceRegistration = 2The command handler could not be resolved or created from the service container.