RubySMB exception usually consists of a simple string that includes the error code, error name and a custom message. It requires the caller to perform string comparison in the raw message string to get the exact error code or name. See this PR's comment.
I believe this can be improved by using more elaborate exception classes containing helpers to extract specific information.
RubySMB exception usually consists of a simple string that includes the error code, error name and a custom message. It requires the caller to perform string comparison in the raw message string to get the exact error code or name. See this PR's comment. I believe this can be improved by using more elaborate exception classes containing helpers to extract specific information.