Fix Beanstalk exception handling
Add a coupld tests to create exception classes from error code names
Merge pull request #2431 from danielgtaylor/beanstalk-exception

Fix Beanstalk exception handling. Fixes #2431.