rapid7 / rex-core

Created by David Maloney via the GitHub Connector
Other
4 stars 23 forks source link

Allow HostCommunicationErrors to provide a reason #14

Closed zeroSteiner closed 3 years ago

zeroSteiner commented 3 years ago

This extends the HostCommunicationError exception class to allow the caller to specify a descriptive reason to be included in the string representation. This is useful when the calling code has additional details about why the operation failed such as a session doesn't support the protocol or something like that. This information will then (hopefully) help the user know why the operation failed.