Add create_error/3 for version 5
Merge pull request #14 from efcasado/master

Add create_error/3 for version 5