{"action":"opened","issue":{"url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/206","repository_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client","labels_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/206/comments","events_url":"https://api.github.com/repos/rabbitmq/rabbitmq-java-client/issues/206/events","html_url":"https://github.com/rabbitmq/rabbitmq-java-client/issues/206","id":181922098,"number":206,"title":"Ability to convert a reply code to a string","user":{"login":"michaelsproul","id":4452260,"avatar_url":"https://avatars.githubusercontent.com/u/4452260?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelsproul","html_url":"https://github.com/michaelsproul","followers_url":"https://api.github.com/users/michaelsproul/followers","following_url":"https://api.github.com/users/michaelsproul/following{/other_user}","gists_url":"https://api.github.com/users/michaelsproul/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelsproul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelsproul/subscriptions","organizations_url":"https://api.github.com/users/michaelsproul/orgs","repos_url":"https://api.github.com/users/michaelsproul/repos","events_url":"https://api.github.com/users/michaelsproul/events{/privacy}","received_events_url":"https://api.github.com/users/michaelsproul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-10T00:26:09Z","updated_at":"2016-10-10T00:26:09Z","closed_at":null,"body":"It would be nice if the library provided an enum for the possible values of `replyCode` that can be sent during a `basic.return`. It would also be good if the enum could be converted to a human-readable string for error messages.\r\n\r\nI'd like to be able to do this:\r\n\r\n```java\r\nvoid handleBasicReturn(ReplyCode replyCode, ...) {\r\n   logger.warn(\"Message returned with code: {}, reason: {}\", replyCode, replyCode.description());\r\n   // .. handle the failure ..\r\n}\r\n```\r\n\r\nList of reply codes here: https://www.rabbitmq.com/amqp-0-9-1-reference.html#constants"}}
{"actor":{"display_login":"michaelsproul"}}