{"action":"closed","issue":{"url":"https://api.github.com/repos/open62541/open62541/issues/847","repository_url":"https://api.github.com/repos/open62541/open62541","labels_url":"https://api.github.com/repos/open62541/open62541/issues/847/labels{/name}","comments_url":"https://api.github.com/repos/open62541/open62541/issues/847/comments","events_url":"https://api.github.com/repos/open62541/open62541/issues/847/events","html_url":"https://github.com/open62541/open62541/issues/847","id":182457706,"number":847,"title":"Status Code to error message","user":{"login":"Pro","id":251973,"avatar_url":"https://avatars.githubusercontent.com/u/251973?v=3","gravatar_id":"","url":"https://api.github.com/users/Pro","html_url":"https://github.com/Pro","followers_url":"https://api.github.com/users/Pro/followers","following_url":"https://api.github.com/users/Pro/following{/other_user}","gists_url":"https://api.github.com/users/Pro/gists{/gist_id}","starred_url":"https://api.github.com/users/Pro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pro/subscriptions","organizations_url":"https://api.github.com/users/Pro/orgs","repos_url":"https://api.github.com/users/Pro/repos","events_url":"https://api.github.com/users/Pro/events{/privacy}","received_events_url":"https://api.github.com/users/Pro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-12T07:49:34Z","updated_at":"2016-10-17T08:37:12Z","closed_at":"2016-10-17T08:37:12Z","body":"Is there already something like `strerror(...)` for UA_StatusCode?\r\n\r\nCurrently I only output the number, e.g. `0x80010000` but it would be nice to print an error message like:\r\n`BadUnexpectedError: An unexpected error occurred (0x80010000)`\r\n\r\nFor that we need a global method which converts error numbers to strings, take from https://opcfoundation.org/UA/schemas/Opc.Ua.StatusCodes.csv\r\n\r\nIf it is not already there I would suggest something like this\r\nhttps://opensource.apple.com/source/gcc/gcc-926/libiberty/strerror.c (it is public domain)\r\nand a compiler switch to disable/enable the error table.\r\n\r\nAny suggestions for the method name?\r\n- Same as stdlib: UA_Strerrno(statuscode) and UA_Strerror(statuscode)\r\n- UA_StatusCode_Msg(statuscode) and UA_StatusCode_Name(statuscode)\r\n\r\nShould I go on with it and implement it?"}}
{"actor":{"display_login":"jpfr"}}