rapid7 / rex-powershell

Rex library for dealing with Powershell Scripts
Other
53 stars 35 forks source link

Add Powershell Specific Errors #38

Closed zeroSteiner closed 2 years ago

zeroSteiner commented 2 years ago

This switches instances of RuntimeError to a module specific PowershellError class so callers can tell what's going on with a bit more detail. This also uses a new error, when the generate command line maximum is exceeded. This can allow the caller to potentially handle it by adjusting options. No logic is changed and all modified exceptions are still derived from the original RuntimeError.

This will be needed by a Metasploit PR.