Method HandleException
- Namespace
- Ploch.CommandLine.Spectre.Commands
- Assembly
- Ploch.CommandLine.Spectre.dll
HandleException(Exception)
Handles an exception by writing its details to the console.
public int HandleException(Exception ex)
Parameters
exExceptionThe exception that was thrown during command execution.
Returns
- int
An error exit code indicating that the command execution failed.